DEV Community

Discussion on: Should hooks always return an array?

Collapse
 
georgenorris profile image
George C. Norris

No you don't have to return a value. You can have a custom hook call useEffect and do some clean up. It doesn't have to return anything.