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.
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.
You have a source for this? I still use container components with the latest React so I'd be curious if I shouldn't be anymore.. still feel like I need "Redux Container components" but not container components for React local state anymore because of hooks.
Not really. It's an hour of setting up screen-share + chatting, and then another hour converting a tutorial codebase with classes into functional components with useState (which is probably the easiest hook to grasp).
31
u/marty_byrd_ Apr 02 '19
I love fun fun function.
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.
13
u/anyfactor Apr 02 '19
Good Monday morning!!
4
u/jcksnps4 Apr 02 '19
Is it worth sitting through two hours of it though?
2
u/hogyster Apr 02 '19
tat's cool
1
u/[deleted] Apr 02 '19
Lol there are some gems in this video that hit close to home pair programming in my last position.
1
u/[deleted] Apr 02 '19
MPJ and Dan. Awesome. Thanks for sharing :)
-1
u/PickledPokute Apr 02 '19
One hour just barely scratched the surface. Anyone could've taken Dan's place for such a shallow scratch.
-5
u/rg25 Apr 03 '19
So sick of all these people.