reactjs / react-tutorial

Code from the React tutorial.
http://facebook.github.io/react/docs/tutorial.html
Other
3.29k stars 2.13k forks source link

Added LiveReload feature #138

Closed dvf closed 8 years ago

dvf commented 8 years ago

On a save, changes appear in browser without a refresh—similar to meteor and gulp.

sophiebits commented 8 years ago

Honestly, I think this is more confusing than helpful. We would also need to make all of the servers support it. Ultimately we just want this to be a simple example that people can code against. Thanks for sending this in but I don't think we're going to take it.

dvf commented 8 years ago

I don't see why you think it's confusing... It's two extra lines and saves a lot of cumulative time.

zpao commented 8 years ago

We'd want to document it and make sure every server supported it so they remain consistent. I think the confusing aspect comes in since autorefreshing is not something everybody is familiar with - they may get slightly confused as to what state they thought they left their app in before switching to back to their editor and saving. It's teachable but ultimately it's probably not worth the effort you'd need to make all servers work that way.