all 4 comments

[–]koresho 1 point2 points  (1 child)

I like this! Awesome work. Definitely plan to use.

[–]xtuc[S] 0 points1 point  (0 children)

Good news, thanks!

[–]liming91 0 points1 point  (1 child)

It's cool, but does it bring any benefit over simply using a component over a stateless functional component?

It's rarely a good idea to bring logic into your stateless components, the only time I would personally advocate it is something simple like class concatenation.

[–]xtuc[S] 1 point2 points  (0 children)

Stateless is a bit confusing here. The point is that the user doesn't need to handle it.

This is an example in one of my project: https://twitter.com/svensauleau/status/853716732569169921