Course lesson

Extract a Custom Hook into its own Module with create-react-hook

After writing your own custom hook, you can extract it into it’s own module using create-react-hook. This will let you bundle it as an npm package to easily share between projects and with the open source community. We'll extract our useStarWarsQuote from the...

Duration
4 min
Access
Pro
Transcript
Available

After writing your own custom hook, you can extract it into it’s own module using create-react-hook. This will let you bundle it as an npm package to easily share between projects and with the open source community. We'll extract our useStarWarsQuote from the previous video in it's own module.