Skip to content

singhshashi/react-flux-kefir-es6-todomvc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TodoMVC example build with React, Flux, Kefir.js and ES6

Forked to show bug where componentDidUpdate prevProps does not contain value of prevProps but of current props.

Steps to see:

  1. Build and run the todo app.
  2. Add a todo.
  3. Edit the todo that you added.
  4. Check the console where value from componentDidUpdate is logged. prevProps value is the latest prop and not prevProps.

Note: This bug does not exist in the original FluxTodo-MVC app by Bill Fisher. Note2: I came across this bug while building another flux react application and then repro'd it here using the todo-mvc app.

============================================================================== This is port of official TodoMVC Flux example from Facebook: http://github.com/facebook/flux/blob/master/examples/flux-todomvc - files structure and most of variable names are the same.

Flux Dispatcher and EventEmitter (used in Store) are replaced with Kefir.js FRP library: http://pozadi.github.io/kefir/

JavaScript code is written in ES6 with modern React 0.13 class syntax, transpiled by Babel

Demo

Installing

npm install

Rebuild if you change something

webpack

About

TodoMVC example build with React, Flux, Kefir.js and ES6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published