Skip to content
card background pattern
Level 2

Custom React Hooks

Unlock Full Course

$49.99 $24.99



Full Featured Custom Hooks

Until now, our custom hooks have been rather basic. So now we will make our useInc hook even more robust and create a full-featured custom hook.



User photo avatar
3 months ago

@Mike That's because React reads that as a destructuring pattern

5 months ago

It seems as though by adding the default config for useInc to an object, the app will crash if no default is provided.

Isn't the whole point of having a default that you don't have to pass it anything for it to work? If you call useInc with no arguments, the app will crash after you have set the defaults within an object inside of the useInc file.

updated 7 months ago

The whole time I was thinking volume was going to be something to do with liquids, like meters cubed type volume 🤦‍♂️

Something to say?

Become a Pro