-
Notifications
You must be signed in to change notification settings - Fork 20
Plugins
TANIGUCHI Masaya edited this page Nov 9, 2017
·
2 revisions
Combining plugins helps you. Following Example describes that when the type of Action is defined, s2s generate a constant of Action and an Action Creator, a Reducer, its test.
For more informations, see the examples.
Combination of plugins for Redux and Flow.
Shopping Cart (redux+flowtype+s2s)
- babel-plugin-s2s-action-types
generate redux action types - babel-plugin-s2s-action-creater
generate redux action creater - babel-plugin-s2s-action-root
compose flow + redux action types - babel-plugin-s2s-state-root
compose flow + redux state types - babel-plugin-s2s-reducer-root
compose redux reducer - babel-plugin-s2s-reducer-test-case
create reducer test using switch/case