react-items-list

0.0.9 • Public • Published

React Items List

image

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

Package Sidebar

Install

npm i react-items-list

Weekly Downloads

9

Version

0.0.9

License

GPL-3.0

Last publish

Collaborators

  • tejohnso