Summary
In this chapter, we first learned how to persistently store data in the browser by using the LocalStorage API via the Local Storage Hook. Then, we implemented undo/redo functionality in the CreatePost
component using the History State Hook. Next, we learned about debouncing and implemented it using the Debounced Callback Hook. Then, we learned about some utility Hooks to copy to clipboard and handle hover states. Finally, we learned where to find more community Hooks.
In the next chapter, we are going to learn about the rules of Hooks, teaching us the basics we need to know before developing our own custom Hooks.