-
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 components with the help of
storybook
You'll usually start by writing dumb components, just focusing on presentational logic.
Storybook
can help you with that. -
Create
containers
Then, you can focus on what that feature will do with the app state (
actions
) and which part of the state it will need (selectors
). -
Write
redux module tests
(recommended)After creating containers, you'll have a good sense of what
actions
andselectors
you'll need. You can write integration tests to make sure that you'll have proper state when dispatching an action. -
Create
redux module(s)
The last step is to figure out how
reducers
and/orsagas
will 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)