react-items-list
v0.0.9
Published
An editable list of text items with change callbacks
Downloads
15
Maintainers
Readme
React Items List
This is a todo style list that allows creation of new items as well as removal and editing of existing items.
There is a live example here
An items array prop can be provided to prepopulate the list.
Callbacks named onAdd, onUpdate, onRemove can be provided as props.
- onAdd will be called with the text that was added.
- onUpdate will be called with the index and new value.
- onRemove will be called with the affected index.
See the example for sample use.
Development
npm install react-items-list
npm run setup-test-env #expects google-chrome-stable in path
npm run test