daniel-ac-martin / NotGovUK

An implementation of the GOV.UK Design System in React that provides support for writing internal applications in addition to public ones.
https://not-gov.uk/
MIT License
27 stars 8 forks source link

Consider including react-hot-loader #98

Open daniel-ac-martin opened 4 years ago

daniel-ac-martin commented 4 years ago

Further to #19 & #96. We have HMR but we do not currently retain any React state. (Do we need to given that we pipe most things through the query string?)

We could retain state using something like: https://github.com/gaearon/react-hot-loader

Perhaps we should include it?

daniel-ac-martin commented 4 years ago

Possibly this should be used instead: https://github.com/pmmmwh/react-refresh-webpack-plugin/