2551c6fcb4 | ||
---|---|---|
.. | ||
devsrc/todomvc | ||
src/todomvc | ||
README.md | ||
index.html | ||
project.clj | ||
todos.css |
README.md
TodoMVC done with re-frame
A re-frame implementation of TodoMVC.
Setup And Run
-
Install Lien
-
Get the re-frame repo
git clone https://github.com/Day8/re-frame.git
-
go to the right example directory
cd re-frame/examples/todomvc
-
build
lein cljsbuild once
-
run
open todo.html
Exploring The Code
From the re-frame readme:
To build a re-frame app, you:
- design your app's data structure (data layer)
- write and register subscription functions (query layer)
- write Reagent component functions (view layer)
- write and register event handler functions (control layer and/or state transition layer)
Each part has its own cljs namespace.
Notes
This is a modified version of the the offical reagent example