Echo JS 0.11.0

<~>
xat 2000 days ago. link 2 points
IMHO we should really think twice before messing up Stateless/Effect-Free Functional Components with hooks.

To pick up the example in the readme: In original react-redux you probably would create a ProfileStateless Component and a ProfileConnected Component. ProfileStateless as Stateless Functional Component and ProfileConnected as a Component which is connected to the redux store. The beauty of the ProfileStateless Component is that it's easy to test and that it can be also re-used outside of the redux context. Also, someone reading the code of the ProfileStateless function directly sees what the input of the Component is, by checking the props. IMHO we will loose these advantages if we now start using hooks everywhere. That being said, I do see benefits of using hooks in Container Components.

Replies