Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Future of React Transform #90

Closed
gaearon opened this issue Mar 8, 2016 · 2 comments
Closed

Future of React Transform #90

gaearon opened this issue Mar 8, 2016 · 2 comments

Comments

@gaearon
Copy link
Owner

gaearon commented Mar 8, 2016

FYI, I published a post today:
https://medium.com/@dan_abramov/hot-reloading-in-react-1140438583bf

@pwmckenna pwmckenna mentioned this issue Mar 20, 2016
5 tasks
@michael-hertzberg-zocdoc

@gaearon i was a big confused by the deprecation notice... i've been personally using this to instrument my React components to send over to a logging service. Still, nothing to do with hot module reloading... am I missing the idea here?

@gaearon
Copy link
Owner Author

gaearon commented Apr 25, 2016

@michael-hertzberg-zocdoc

The deprecation has nothing to do with hot reloading per se. (I’m just saying that the most common use case for it, hot reloading, is solved by React Hot Loader 3.)

The reason the project is deprecated is it’s impossible to reliably detect React components at the compile time. It wasn’t so bad during React 0.13, but functional components in React 0.14 are notoriously hard to detect (#57), and it’s not going to get easier over time. Any function may turn out to be a React component now. Additionally, components that are generated (e.g. with higher order components) were not being detected at all.

For instrumenting React components, you will be able to use the official React devtool API that is soon going to be exposed. It’s unstable but it’s better than nothing. (facebook/react#6549, facebook/react#5306)

@gaearon gaearon closed this as completed Apr 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants