React Hooks is still in alpha version. This example is using React 16.8.0-alpha.0. Please check official documentation in https://reactjs.org/docs/hooks-intro.html.
You can clone our Git repository:
`$ git clone https://github.com/pmagaz/react-hooks-example
Execute yarn start or npm run start to start the development server and the example.
UseState.jsx
Use example of usestate hookUseEffect.jsx
Use example of useEffect hookUseApiRequest.jsx
A more complex use of Use of useEffect & useStateUseCallBack.jsx
Use example of useCallback hookUseMemo.jsx
Use example of useMemo hook which works in the same way like useCallbackUseRef.jsx
Use example of useRef hookUseReducer.jsx
Use example of useReducer hookUseContext.jsx
Use example of useContext hook
Those are a pretty basic examples for educational purposes and using an Alpha version. DON'T use it in production.