Re:React Hot Loader: Tweak React Components in Real Time
by seanmcdirmid on Monday February 02, 2015 @03:16AM
(#8983203)
Yes, not losing state is a big deal. This is possible because the UI is stateless while React is a view on that state. We built a similar system (for TouchDevelop) in a PLDI paper a few years back:
http://research.microsoft.com/pubs/189242/pldi097-burckhardt...
From the paper, adding a navigability aspect between UI and executing code is something that is fairly straightfoward to do and very useful.
My current live programming work is over stateful code (meaning the code that is being live edited involves side effects). It is difficult to support that in existing programming models, however.
The site does say:
> React Hot Loader will keep it mounted, preserving the state.
but I agree that it could be more explicit about how it's useful.