React - Hooks
What are React Hooks?
React Hooks are functions that let us hook into the React state and lifecycle features from function-based components.
What is the purpose of useState?
Returns a stateful value and a function to update it.
What is the purpose of useEffect?
Perform side effects in function components. One of the biggest uses of useEffect is to make HTTP requests when the page loads.
What is the purpose of useContext, useReducer, useRef?
I need to learn more about these.
page revision: 0, last edited: 03 Dec 2021 06:55