react-super-scripts icon indicating copy to clipboard operation
react-super-scripts copied to clipboard

HMR setup

Open cezarneaga opened this issue 8 years ago • 4 comments

Is HMR supposed to work without any configs? Mine doesnt seem to work. using Preact though.

cezarneaga avatar Jan 30 '17 08:01 cezarneaga

@cezarneaga yes, i noticed, it works with react but not with preact. I am using babel-preset-hmre for this and maybe preact isn't compatible. I checked one or two boilerplate but they had same issue. If you get a work around or find any boilerplate having a working hmr, do tell :)

shrynx avatar Jan 30 '17 10:01 shrynx

one could write the code in react and build in preact :)

cezarneaga avatar Jan 30 '17 14:01 cezarneaga

haha, you can. but too risky, wouldn't know if something is breaking. I will look into this soon.

shrynx avatar Jan 31 '17 00:01 shrynx

here's something that might help: https://github.com/developit/react-router-4-test

cezarneaga avatar Jan 31 '17 09:01 cezarneaga