Extract Custom Hooks
Just like components, Hooks can be composed and extracted.
When it’s time to extract a Hook, we just create a new function that returns data.
Assignment Sandbox: https://codesandbox.io/s/react-holiday-day-8-tixow
Just like components, Hooks can be composed and extracted.
When it’s time to extract a Hook, we just create a new function that returns data.
Assignment Sandbox: https://codesandbox.io/s/react-holiday-day-8-tixow