This repository contains example applications for OneRef, a minimalist approach to unidirectional data flow for React applications.
OneRef and these examples are described in A Tutorial Introduction to OneRef and Asynchrony Support in OneRef.
Examples:
- todomvc - Port of the classic TodoMVC example to OneRef
- multitodo - Demonstration of composition in OneRef, by combining two todo lists in one app.
- todo-async-basic - Basic asynchrony in OneRef, by simulating a todo list with simple subscriptions.
- hello-aync - A OneRef implementation of hello-async, based on this answer to a question on Stack Overflow.
- flux-challenge - My answer to the Flux Challenge, by Andre Staltz
The examples were all developed using create-react-app.
To build and run the examples, cd
to the example directory and run:
$ npm install
$ npm start
These examples are BSD-licensed (the same License, attribution and copyright notice of the original Flux examples).