True or false:
useReduceris a reducer function that takes in the initial state and an action and returns the new state.True
False
True or false: The
useStatehook is best suited for complex state logic or when the next state depends on the previous one.True
False
A common scenario for using the
useRefhook is to......focus the cursor into an input field.
...control a component's state.
...handle side effects.
...memorize expensive operations.
True or false: Building your own Hooks lets you extract component logic into reusable functions
True
False
The
useStatehook gives us a reliable way to...... deal with state updates in React components.
... deal with state updates in React prompts.
... deal with state updates in React dependency arrays.
... deal with state updates in React useEffect invocations.

