React - Hooks

react

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.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License