Congrats on finishing the Custom Hooks lesson! In this lesson, we reviewed how the
useState() and the
useEffect() hooks work. We have also covered the rules that hooks are governed by. The rules of hooks apply to both built-in hooks as well as any custom hooks that we create.
use but otherwise can be designed as the developer sees fit. Custom hooks are useful for encapsulating complex and repetitive hook logic and are often created in their own file and exported for maximum portability.