r/javascript • • Apr 02 '19

Dan Abramov teaches me React Hooks

https://www.twitch.tv/videos/404530952
578 Upvotes

24 comments sorted by

View all comments

18

u/bnelo12 Apr 02 '19

It's funny reading the Redux documentation now a days. He put in a comment about how he no longer supports the idea of using container components and instead to use React hooks.

18

u/germainelol Apr 02 '19

It makes sense, but I still enjoy making container components purely so that I have some pure UI components that are reusable and can be shown easily in Storybook.

8

u/MaggoLive Apr 02 '19

This exactly! If possible try to avoid state and data access as much as possible in your components and only use it at the top level. Keep em pure!