import React from 'react'; React.useState(); // Error: function requires another argument. const [count, setCount] = React.useState(1); count as number; // Ok count as string; // Error: number is incompatible with string setCount(2); // Okay setCount(true); // Error: boolean is incompatible with number