DEV Community

Thierry
Thierry

Posted on

React Hooks

Curious how everyone's experiences have been using React Hooks. Do you prefer writing functional components instead of using classes? Are you still using Redux, or relying on custom hooks?

Top comments (2)

Collapse
 
fly profile image
joon • Edited

Hooks + redux + custom hooks.
I haven't tried but I don't think using hooks with classes is possible...
I Personally don't find Provider api appealing(lack of debugging tools as robust and powerful as redux).

Using custom hooks instead of redux was also a thing in devto posts a while ago I think, but is something I will not recommend for the same reason as above.

Hooks are awesome :)

Collapse
 
nozil profile image
Nicolas Zilli

Custom hooks extracted to another file make it easier to mock with jest and test your functional components (since they are kind of dummy).

Hooks are really awesome and functional 👍