Hot Module Reloading for Preact
Fast-refresh for Preact!
We need to be able to recognise your components, this means that components should
start with a capital letter and hook should start with use followed by a capital letter.
This allows the Babel plugin to effectively recognise these.
Do note that a component as seen below is not named.
export default () => {
return
Want to refresh
;
};Instead do:
const Refresh = () => {
return
Want to refresh
;
};
export default Refresh;When you are working with HOC's be sure to lift up the displayName so we can
recognise it as a component.
If you want to use @prefresh/webpack with IE11, you'll need to transpile the @prefresh/core and @prefresh/utils packages.
No open issues yet, or sync has not completed.