The best place to start is with Kyle’s course on all the hooks.
It’s good to have a solid mental picture of both (1) which hooks are built-in, and (2) how to build your own hooks. Here are the major built-in ones, organized by purpose:
Type | Built-in Hooks |
---|---|
State Management | useState, useReducer |
Effect Management | useEffect |
Context | useContext |
Routing | useHistory, useLocation, useParams, useRouteMatch |
Styles | useStyle, useTheme |
Animation | useSpring, useTransition |
Here are a few others that are lesser-known:
See the reference documentation for these hooks. If you are looking for more, check out the Rooks project which has dozens of hooks to add to your apps. There’s even a few interesting hooks in this article.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Here are some questions useful for your spaced repetition learning. Many of the answers are not found on this page. Some will have popped up in lecture. Others will require you to do your own research.
We’ve covered: