-
Notifications
You must be signed in to change notification settings - Fork 293
Workflow
ARc is structured in a way that makes it easier to work on different parts of the application with distinct focuses.
When introducing a new feature or even starting the project from scratch:
-
Create
presentational componentsYou'll usually start by writing dumb components, just focusing on presentational logic.
Storybookcan help you with that. At this point, you can usegeneractto generate new components and improve your productivity:
-
Create
containersThen, you can focus on what that feature will do with the app state (
actions) and which part of the state it will need (selectors).generactcan also help you here. -
Write
redux module tests(recommended)After creating containers, you'll have a good sense of what
actionsandselectorsyou'll need. You can write integration tests to make sure that you'll have proper state when dispatching an action. -
Create
redux modulesThe last step is to figure out how
reducersand/orsagaswill respond to dispatched actions so you can modify the app state and/or make side effects.
Special thanks to @kybarg and @protoEvangelion for helping to write this Wiki. Please, feel free to edit/create pages if you think it might be useful (also, see #33)