×

Html & Html5

The World's best Software Development Study Portal

What is Hooks

Hooks are the new feather that comes in the React 16.8 version. With the help of Hooks. You can use State and more React features without Class Components. Always Remember Hook will not work inside Classes. And You need to use it on the top level in your react program. Never Call Hooks inside loops, Conditions, etc.

UseCallbackAPI

 

Basics of Hooks

1. useState

2. useEffect

3. useContext

--------------------------------------------------------

Additional Hooks

1.useReducer

2.useCallback

3.useMemo

4.useRef

5.useDebugValue

6.useLayoutEffect

----------------------------------------------------------