My reading journal for Code Fellows
useState() HookWhat was the motivation for introducing Hooks?
What changes are important regarding implementing Hooks versus Component Classes?
Hooks allow you to reuse stateful logic without changing ____.
Name two rules imposed by React Hook usage.
How would you identify a custom Hook and why might you create one?
use identifies a custom hook and so you can call other hooksWhat is a Hook?
When would I use the useState Hook?
If you were to add React state to a function component by declaring a state variable:
What does calling useState do?
What do we pass to useState as an argument?
useState() Hook is the initial state. Unlike with classes, the state doesn’t have to be an object. We can keep a number or a string if that’s all we needWhat does useState return?