Skip to content

Quickly create movable task lists in React.

License

Notifications You must be signed in to change notification settings

pramser/react-tasks

Repository files navigation

React Tasks Build Status

Quickly create movable task lists in React.

Basic Usage

Using the task list is as simple as importing and implementing the <TaskList /> in your React app with a basic list of tasks and something to handle updates from the component.

  state = {
    tasks: [
      {id: 1, title: 'Task Title', description: 'Describing the task...', isCompleted: true}
    ]
  }

  onTaskChanged = updatedTask => {
    console.log(updatedTask);
  };

  render() {
    return (
      <div className="App">
        <TaskList tasks={this.state.tasks} onTaskChanged={this.onTaskChanged} />
      </div>
    );
  }

Currently, the schema is tightly bound to simple, json object lists that have an id, title, description, and isCompleted boolean, but that's bound to change later when custom schema overrides are available.

Starting Demo Application

The project leverages nwb for tooling around development, so starting the demo from a local fork is as simple as running 'start'.

yarn start

Contributing

The code isn't quite set up for contributing just yet since there's no tests for expected behavior. Once this is done, I'll redo this section, but until then it'll just be me working on this.

About

Quickly create movable task lists in React.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published