Redux CRUD is a convention driven way of building CRUD applications using Redux. After building several Flux applications we found that we always end up creating the same action types, actions and reducers for all our resources.
Redux CRUD gives you a standard set of:
- action types: e.g.
- actions: e.g.
- reducers: for the action types above e.g.
Working with resources in Redux
When building an app you might have resources like
You'll probably end up with action types for them like:
And action creators like:
There's obvious repetition there. Redux CRUD aims to remove this boilerplate by providing strong conventions on naming and processing data.
Redux-crud provides two stores:
- List. A plain JS array. This preserves the order of records.
- Map. A JS object where records are indexed by key. This provides faster writes and lookups.
Using with Redux
You can see a basic example here