DEV Community

Discussion on: Speeding up your development with Webpack 5 HMR and React Fast Refresh

Collapse
 
fabricioffv profile image
Fabricio Filipe Viapiana

Hey Daniil, firstly I'd like to thank you for the amazing post. It's really helpful.
I set up on small project which has class components and it seems like for class components it doesn't work. I mean, every time I make a small change like change a h1 value the state is reset. For functional components is working like a charm!
Thanks!

Collapse
 
dondixx profile image
Daniil Polovinkin

Create a stackoverflow question, send me the link, I will help you with class components.