Skip to content

abdullahmubin/ReactHookDetails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm install

npm start

useEffect : useEffect is close replacement for componentDidMount, componentDidUpdate and componentWillUnmount.

Context: Context provides a way to pass data through the component tree without having to pass props down manually at every level.

useReucer: useReducer is a hook that is used for state management. its an alternative to useState. useState is built using useReducer. useReducer(reducer, initialState) -> reducer(currentState, action);

useCallback : useCallback is a hook that will return a memorized version of the callback function that only change if one of the dependencies has changed.

useMemo : The useMemo() hook allows you to memoize functions so that the function is prevented from being called on every render.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages