Skip to content

Commit

Permalink
Merge pull request #1 from sven-dibowski/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ authored Dec 13, 2024
2 parents a08ee6f + 8dd2555 commit de351cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ When all actions of an event are handled, we ask Replicant to render the app, pr

The views are pure functions that return Hiccup (Clojure vectors representing the DOM). The functions have no local state (and don't use any globel state either), operating only on the data provided to them. This is deliberately imposed by the Replicant library, which doesn't suport local state.

Replicant calls the top view with the app state, and that view then calls all the other views in a cascade. In development you can evaluate any subview in the REPL, while iterating on it, and examine what data (Hiccup) it returns. Since there is no local or global state, all you need to do is prvide enough data to the view. You can also write tests for the views. Hiccup is super easy to inspect.
Replicant calls the top view with the app state, and that view then calls all the other views in a cascade. In development you can evaluate any subview in the REPL, while iterating on it, and examine what data (Hiccup) it returns. Since there is no local or global state, all you need to do is provide enough data to the view. You can also write tests for the views. Hiccup is super easy to inspect.

### Routing

Expand Down

0 comments on commit de351cb

Please sign in to comment.