Open Dev-Dipesh opened 5 months ago
Also should use the cleanup function to avoid memory leaks as shown in the full code.
Looks good to me at first sight too, thanks. Will take a look at your other suggestions a bit later as well. Great work so far!
Project: rmtdev Video: 132
Instead of using
as const
a far safer alternative is to simply define the return value for the custom hookFull Code