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
{{ message }}
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
I'm currently in chapter 1(page 17) of the book where i got introduced to Hot Module Replacement which seems like a very useful tool in development stage but when i tried to apply it in my hackernews app it does not reload the page automatically on changes.What could be the problem here ?
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(, document.getElementById('root'));
if (module.hot) {
module.hot.accept();
};
The text was updated successfully, but these errors were encountered:
I'm currently in chapter 1(page 17) of the book where i got introduced to Hot Module Replacement which seems like a very useful tool in development stage but when i tried to apply it in my hackernews app it does not reload the page automatically on changes.What could be the problem here ?
The text was updated successfully, but these errors were encountered: