Just noticed I made a typo. It's reload and not reset .
Hugo Dozois-C.
11

Got it, thanks Hugo Dozois-C.! That worked, just one last question: does hot reloading only work with classes that are decleared like this?

class Main extends Component {...

I tried to use it with classes that are declared like this and it did not work:

const Main = (props) => {...

Do these declarations not work for hot reloading? Is there any way to make them work?

Thanks again! :)

Like what you read? Give Leopold Joy a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.