Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
docs: fix typo
  • Loading branch information
sven-dibowski authored Nov 25, 2024
1 parent 1536260 commit 8dd2555
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 8dd2555

Please sign in to comment.