We’ll look at some of the more advanced hooks and APIs and ways they can be used to optimize your components and custom hooks. We'll consider each API with common use cases you'll run into in your applications.
- You should be experienced with
useState
,useEffect
, anduseRef
.
Here are some resources you can read before taking the workshop to get you up to speed on some of the tools and concepts we'll be covering:
- Should I useState or useReducer?
- How to Implement useState with useReducer
- useEffect vs useLayoutEffect
- Imperative vs Declarative Programming
All of these must be available in your PATH
. To verify things are set up
properly, you can run this:
git --version
node --version
npm --version
If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for windows or mac/linux.
This is a pretty large project (it's actually many apps in one) so it can take several minutes to get everything set up the first time. Please have a strong network connection before running the setup and grab a snack.
Follow these steps to get this set up:
git clone --depth 1 https://github.com/epicweb-dev/advanced-react-apis.git
cd advanced-react-apis
npm run setup
If you experience errors here, please open an issue with as many details as you can offer.
Once you have the setup finished, you can start the app with:
npm start
Learn all about the workshop app on the Epic Web Getting Started Guide.