react-elmish-example

0.1.0 • Public • Published

React Elmish Example

This is my personal attempt to understand Elm Architecture better and show how it can be imitated by React components. I'd also like to better understand its strengths and weaknesses.

This specific repository currently has just one example with a few components:

  • A counter component
  • A list component enhancer
  • An action log component enhancer
  • This lets us render a list of counters...
  • ... with action log!
  • ... and undo/redo!

Note that the state lives at the top of the application.

Running

It's up on Github Pages.

You can also

git clone https://github.com/gaearon/react-elmish-example.git
cd react-elmish-example
npm install
npm start
open http://localhost:3000

Sorry, no hot reloading this time!

License

MIT

Dependencies (2)

Dev Dependencies (9)

Package Sidebar

Install

npm i react-elmish-example

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • gaearon