shiponcs / reactjs-hooks-with-elaborate-use-cases

This repo shows many use cases of almost all ReactJS hooks with a few explanation as a comment to particular source file.

Repository from Github https://github.comshiponcs/reactjs-hooks-with-elaborate-use-casesRepository from Github https://github.comshiponcs/reactjs-hooks-with-elaborate-use-cases

reactjs-hooks-with-elaborate-use-cases

It contains almost all of reactjs hooks from basic to advance

  • useState
  • useEffeect
  • useCallback
  • useContext
  • useRef
  • useMemo
  • useReducer
  • useImperativeHandle

For good coupling, this repo also contains some use cases of

  • createContext
  • memo
  • createRef
  • forwardRef (according to reactjs docs, "useImperativeHandle hook should be used with forwardRef")

I took many ideas to arrange this from btholt's https://github.com/btholt/react-hooks-examples/tree/master/ and added more use cases with a bit explanation

About

This repo shows many use cases of almost all ReactJS hooks with a few explanation as a comment to particular source file.


Languages

Language:JavaScript 97.8%Language:HTML 2.2%