DEV Community

Discussion on: Vite Hot Module Replacement - A Complete Example

Collapse
 
ekeijl profile image
Edwin

So if I understand correctly I need to enable HMR for every module manually? Seems like a lot of work.

Maybe it would save time if you're focussing on a single module that has a lot of internal state. Otherwise I would just setup Storybook and create stories for every individual state of the component.

Collapse
 
omar4ur profile image
Omar Shehata

I agree that Storybook sounds great for UI components. I think this model is less work for interactive/3D applications where parts aren't easily extracted out, and helpful if you need to see it in full context.