Document Redux setup in additional environments like React Native and Next.js and link additional templates
See original GitHub issueOur docs currently teach app setup based on a standard SPA-style approach, and specifically with use of Create-React-App. Related, our installation instructions currently point to the two RTK templates for CRA (JS and TS).
We should add additional installation and setup instructions for other major React environments, like React Native and Next which both differ significantly in how the app structure is defined and have different considerations (no ReactDOM.render()
call in RN or Next, and Next users will likely want to integrate with Next’s data fetching APIs).
We could possibly do this by updating/rewriting https://redux.js.org/usage/configuring-your-store to be more about “how do you set up a Redux store in various environments?” and covering RN/Next specifically as part of that, or we could keep the idea of “store configuration” and “app project setup” in separate pages.
Related to this, it would be nice if we could point to specific templates for those environments as well.
For RN, there’s https://github.com/rahsheen/react-native-template-redux-typescript , which ports the RTK+TS example to the RN CLI.
For Next, there’s https://github.com/vercel/next.js/tree/canary/examples/with-redux , which does something similar.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (7 by maintainers)
Top GitHub Comments
Hmm. @fregayeg , I definitely want any differences in Redux DevTools setup covered (if there are any), but I don’t think we need to worry about navigation or testing.
@fregayeg : FWIW, the request in this page isn’t actually for a full-blown app 😃
What I’m looking for is something sort of along the lines of the existing “Configuring Your Store” page, that would answer questions like:
ReactDOM.render()
- where do I add the<Provider>
to the component tree?