A collection of react components that iterates over the each prop and renders the render prop.
npm install react-listableA collection of react components that iterates over the each prop and renders the render prop.
Demo

``jsx
const users = [{ name: 'Victor 😎', age: 10 }]
{ name }, { age }
`
You can use npm/yarn to install
`bash`
npm install react-listable
` { name }, { age }jsx `
loader={() => loading}
render={
({ name, age }) =>
}/>
` { name }, { age }jsx ` className="list"
each={state.users}
setActive={({ name }) => name === 'Maria 🙍'}
render={
({ name, age }) =>
}/>
` { name }, { age }jsx className="list"
each={state.users}
render={
({ name, age }) =>
}/>
``
See the full documentation and live examples at https://victorvoid.me/react-listable
License
-------
The code is available under the MIT License.