GithubHelp home page GithubHelp logo

ssorallen / react-todos Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 8.0 3.39 MB

Backbone's example TODO app with React Components for views

Home Page: https://ssorallen.github.io/react-todos/

License: MIT License

CSS 20.89% JavaScript 72.75% HTML 6.36%
reactjs backbone

react-todos's Introduction

React Todos

Backbone's example TODO app with React JS Components for views in place of Backbone.View.

Demo

https://ssorallen.github.io/react-todos/

The demo uses local storage to save todos in the browser. The views are all rendered with React, which means there is no dependency on another DOM manipulation library like jQuery.

Running Locally

  1. Clone this repository

  2. Install dependencies

     $ yarn install
    
  3. Run the local server

     $ yarn start
    
  4. See the running app at http://localhost:3000

Favicon

The great little todo list favicon comes from Typicons.

react-todos's People

Contributors

ssorallen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-todos's Issues

Leave public API to object, not BackboneMixin

Mixins should avoid modifying the public API of objects, which means BackboneMixin should let objects that use it implement the equivalent of getBackboneObject.

I'd like to go with something like getResource, which should return an object that extends Backbone.Events, e.g. an instance or Backbone.Model or Backbone.Collection.

As mentioned in #1.

A few ideas for tweaks

This is great! Had a few ideas for improvement.

  • TodoListItemComponent could have editing be on props instead of state
  • Then in componentDidUpdate() you can only focus if (this.props.editing && !prevProps.editing)
  • In general I don't like it when mixins read from props since they can manipulate the public API of a component. So I would move getBackboneObject() to the user of the mixin rather than the mixin itself.

Just a few ideas... this looks great!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.