GithubHelp home page GithubHelp logo

imranansari / react-rxjs-todomvc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fdecampredon/react-rxjs-todomvc

0.0 2.0 0.0 969 KB

TodoMVC implementation with React and RxJS

HTML 0.04% JavaScript 99.12% CSS 0.83%

react-rxjs-todomvc's Introduction

React Rx TodoMVC Example

TodoMVC implementation built on top of React and RxJS

Running

Simply start a static server on this project folder.

Building

You have to install Browserify then simply run these command :

npm install

this will install all the dependencies and bundle the project sources files.

#Implementation

This implementation has been inspired by the React Flux architecture

In this implementation has 3 main parts, a TodoStore, a list of actions contained in TodoActions, and a list of views in the form of React Components.

The TodoStore:

This store exposes 2 streams:

  • todos: An RxJS observable that will contain an up-to-date list of todos.
  • updates: an RxJS Observer that will receive operations to apply on the list of todos, those operations take the form of functions that create a new version of our todos list.

The TodoActions:

A list of Rx Observer that will be exposed to our components, this actions are registered against the updates stream of the TodoStore, and will push new operations into this stream when they receive values.

The Views:

A set of React components that will react to changes in our TodoStores todos stream. In this implementation state and events handlers are managed in a 'reactive' way through the use of a special RxMixin.

TodoStore.todos --------------> React Components ---- (push value) ---> TodoActions-- + 
ษ…                                                                                     |
|                                                                                     |
|                                                                                     |
|                                                                                     |
+--(apply operation on the todos list) ---TodoStore.updates  <--- (push operations) --+

react-rxjs-todomvc's People

Contributors

fdecampredon avatar isochronous avatar vjeux avatar

Watchers

 avatar  avatar

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.