45% Faster React Functional Components, Now
Philippe Lehoux
2.6K36

Interesting thought.

I believe this won’t work with functional components wrapped with recompose and libraries that add some kind of state to these, so a convention that functional component will always be stateless should be agreed upon a team that takes this approach.
The question is do we really want to abandon wrapping of functional components?

const enhance = recompose.compose(withProps(...), pure)
const MyComponent = enhance(({props}) => (
<div>.....</div>
))
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.