This repo is meant to show examples of Hooks being used for simple problems. I may expand this to include gotchas at some point.
This was built mainly from examples on reactjs.org and overreacted.io.
This project was bootstrapped with Create React App.
https://slides.com/michaelklosterboer/react-v16-8
https://codesandbox.io/s/github/mklosterboer/hooks-demo
$ git clone https://github.com/mklosterboer/hooks-demo.git
$ cd hooks-demo
$ npm install
$ npm start
- React Docs on Hooks - Great docs with examples and an FAQ
- Dan Abramov's Blog - Regularly posts on new topics in React
- A Complete Guide to useEffect - Deep dive on useEffect and 'Thinking in Hooks'
- How to Fetch Data with React Hooks - Walks through useState, useEffect and creating custom hooks for data fetching
- React Today and Tomorrow (58min) - Intro of hooks at React Conf 2018
- Intro to React Hooks (30min) - Guided walkthrough of React Hooks at Facebook's F8 Conference