React / Redux Accordion

I needed a lightweight (no 3rd party libs) and reusable Accordion React component that could have a single or multiple instances running at one. Finally it needed to be able to be controlled by either a local component state, redux store or both simultaneously…

The project has now been open sourced, get the code here :
Github repo

Redux Accordion is a fully featured accordion component, built using react/redux with ECMAScript 6. Simple to set up, simple to use and most importantly hopefully as simple as possible to maintain and build upon.

Usage

Redux accordion uses a redux store to manage its state, a maintainable way to handle your state objects. However if you would like to use the component version (or within a pure React build) you can use the redux-accordion-component version within the /src.

* The uniqId specifies how this instance is referenced in the reducer (non-component version)
* You can set `singleOpen={true}` if you want to limit the accordion to only open a single section at a time
* You can set `openByDefault={true}` if you want to accordion to be open by default