You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportdefaulthot(module)(Hello) // <-- the only change to do
242
+
exportdefaulthot(module)(Hello) // <-- module will reload itself
241
243
```
242
244
245
+
Marking component as `hot` will make it self-reloadable. But this require altering your code, and sometimes
246
+
is not possible.
247
+
248
+
For a better expirence you could use more React-Hot-Loader "compatible" loaders:
249
+
250
+
*[loadable-components](https://github.com/smooth-code/loadable-components/) - always reloads and preloads component in development.
251
+
*[react-imported-component](https://github.com/theKashey/react-imported-component) - reloads component on HMR (React 16.3 compatible).
252
+
*[react-universal-component](https://github.com/faceyspacey/react-universal-component) - reloads component on HMR.
253
+
243
254
### Checking Element `type`s
244
255
245
256
Because React Hot Loader creates proxied versions of your components, comparing
0 commit comments