Open akshaymohite opened 8 years ago
Hmmm.... I wonder where it's breaking down. It seems like eval
should support multiple statements. And the code flow is simple:
Header
would be redefined)data-react-component="Header"
would be remounted with the newly-defined Header
component Is there any error in the JS console? Or it just fails silently?
If we use strict mode as the first statement (or any other statement for that matter) then js code evals the first statement and thus, hot reloading doesn't work.
For example,