olebedev / go-starter-kit

[abandoned] Golang isomorphic react/hot reloadable/redux/css-modules/SSR starter kit
Other
2.82k stars 359 forks source link

Update Hot-reloading #99

Open xeoncross opened 5 years ago

xeoncross commented 5 years ago

According to the readme, hot reloading is performed via react-transform & webpack 1 HMR. However, both projects are depreciated.

https://github.com/gaearon/react-hot-loader is the replacement.

In fact, much/all of the webpack stuff could be replaced with Parcel removing a lot of configuration complexity.

olebedev commented 5 years ago

Sounds good to me 😀

I am not that I will be able to spend even an hour for this in nearest 3 months. So, if you could do this, please do via PR.

xeoncross commented 5 years ago

How much are you comfortable changing? If I fork the project and move from glide to go modules (1.10+), remove webpack for parcel, replace echo with gin (or raw httprouter), and build a basic login demo using material-ui and goth or authboss - would you still want to merge it?

olebedev commented 5 years ago

Everything sounds good except changing echo to gin(i have changed gin to echo at one of precious iterations). The rest is perfectly fine. Please do it.

talentlessguy commented 4 years ago

@Xeoncross so, how's the progress on the PR?

xeoncross commented 4 years ago

@talentlessguy I don't think I ever started actually. An alternative to is simply using chromedp to pre-render the react app: https://gist.github.com/Xeoncross/61e177b207875952288bfe37912a0d51