Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for React stateless components (new in v0.14) #198

Closed
Jadaw1n opened this issue Sep 22, 2015 · 2 comments
Closed

Add support for React stateless components (new in v0.14) #198

Jadaw1n opened this issue Sep 22, 2015 · 2 comments

Comments

@Jadaw1n
Copy link

Jadaw1n commented Sep 22, 2015

New with React v0.14 are statless components. https://facebook.github.io/react/blog/2015/09/10/react-v0.14-rc1.html#stateless-function-components

They're super useful, but sadly not hot reloadable.

Please add support for them :)

@gaearon
Copy link
Owner

gaearon commented Sep 22, 2015

React Hot Loader is deprecated in favor of React Transform plugin for Babel and React Transform HMR. I don't plan to add support for stateless components to React Hot Loader, but I do plan to add it to those projects. Please track gaearon/react-transform-hmr#6.

@gaearon gaearon closed this as completed Sep 22, 2015
@Jadaw1n
Copy link
Author

Jadaw1n commented Sep 22, 2015

Oh, didn't see that, thanks!

keithpitt added a commit to buildkite/frontend that referenced this issue Mar 7, 2016
React Hot Loader doesn't work with stateless react functions, and the
community is divided on the issue:

gaearon/react-hot-loader#198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants