-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document how to add redux (or an example) #630
Comments
CRA only handles the build process. Redux, or any React components, are regular dependencies. To install them, you run |
Also, to clarify, this project is not meant to provide the "boilerplate" code for your app. We think that it is important that you write app code yourself, and understand the libraries you are using, and their APIs. This project exists to make build process easy. This means you don't have to think about configuring Babel, Webpack or ESLint. Everything needed so you can write JSX and ES6 and have a good development experience. However it doesn't make choices about which runtime libraries you use, or how you structure your app. So it's not an opinionated "starter kit". Such starter kits could be built on top of Create React App. In fact all examples in Redux repo use it, so you might want to check them out. |
I did not know you had ported the redux examples to CRA, that is very helpful - thanks. I'm finding it hard to grasp the conceptual model of CRA. Not boilerplate, not starter kit, abstracts away webpack and babel complexity, yet build system doesn't seem right either. Having it generate code, while good, is also a bit misleading if it is a build process. Not complaining, just thinking. |
Well, tools like this weren't very popular before so I don't think we ever came up with a name. It does a few things:
So yeah, it doesn't cleanly fit those roles, but that's precisely because we think those roles are problematic and didn't work well, and we wanted to try something different. |
names:
create-react-app --add_redux --add_whatever --no_app (only generates Just speculations, not even suggestions. :-) Terry On 9/12/16 5:55 AM, Dan Abramov wrote:
|
For now, I feel this is out of scope so closing. |
Redux is an essential part of my react development. I like create-react-app, but now I need to find a way to add in redux. Do I "eject" and then add redux or ...? At that point it is more helpful [for me] to use another boiler plate project project. Put another way, create-react-app lowers the barrier to starting a react project, but it does not lower the barrier to starting a react-redux project.
The text was updated successfully, but these errors were encountered: