iansinnott / react-static-boilerplate

A boilerplate for building static sites with Webpack 2, React and React Router
107 stars 16 forks source link

Redux support #10

Closed iansinnott closed 8 years ago

iansinnott commented 8 years ago

I'm not yet sure how this would look, but it seems to be an issue. This was brought to my attention because of #9. The way this react-static-webpack-plugin currently works is by using the root <Route> as the root component, however, when using redux we need the Provider to be available or otherwise find some way of wrapping the rendered component in <Provider>.

Open to suggestions. The answer might be to rethink how react-static-webpack-plugin handles parsing and rendering routes to static files.

@scherler if you have any additional thoughts on this please let me know!

iansinnott commented 8 years ago

Should be supported as of react-static-webpack-plugin v1 (CHANGELOG.md)