-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend React
yibinericxia edited this page Aug 11, 2023
·
1 revision
useState() is very helpful for us to create state variables and update them
useEffect() is commonly used when we want to make an HTTP request
useLayoutEffect() is called before useEffect()
useRef() can help when we want to interact with an element, such as to clear the value of input or focus it
Similar to useState(), useReducer() is helpful for managing state across multiple components that may involve different actions