Summary
In this chapter, we summarized all the React built-in hooks that we've introduced so far and then went on to how to create a custom hook. Then, once we understood the concept, we went over all the code we wrote in this book and turned some of it into custom hooks, including useToggle
, useWindow
, useAsync
, useDebounced
, useClickOutside
, useCurrent
, and useProxy
.
In the next chapter, we will get to know how React pulls together all different types of web resources and orchestrates them to build a website.