shsangha / redux-saga-ssr Goto Github PK
View Code? Open in Web Editor NEWAn experiment to learn more about the inner workings of WebPack and how to handle data loading when server rendering a React app without NextJS. Supports hot module replacement in development and async CSS and JS chunks in production via the Webpack Node API used in an express server. For data loading I figured out how to use the END channel of Redux Saga to coordinate data loading, and through using a central route config can have components expose static methods that trigger data loading sagas before rendering. This is very much just a boilerplate but it made me a lot more comfortable with Webpack and very excited to dive deeper into Redux