Skip to content

Conversation

@lukewestby
Copy link
Contributor

This PR enables stateless function components by detecting whether the input component is a ReactClass or a plain function, and then branching to two different higher-order component creators depending on the result. The one for stateless functions wraps the input function in another stateless function that implements the same functionality in the original render method.

Any feedback would be appreciated!

gajus added a commit that referenced this pull request Oct 2, 2015
Enable stateless function components
@gajus gajus merged commit 4c10839 into gajus:master Oct 2, 2015
@gajus
Copy link
Owner

gajus commented Oct 2, 2015

Thank you @lukewestby

@gajus
Copy link
Owner

gajus commented Oct 2, 2015

This has been added in version 3.3.0, @8857b8c6b338ff0d91400684726ed152a8a904c2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants