File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11Cursors
22==============
33
4- Cursors can be seen as a kind of * pointers * to a particular part of an
5- atom, which behaving exactly like a normal atom. This means that you
4+ Cursors can be seen as a kind of * pointer * to a particular part of an
5+ atom, which behaves exactly like a normal atom. This means that you
66use the same functions you would on an atom (` reset! ` , ` swap! ` ,
77` deref ` , ` add-watch ` , etc) but affect only the part you are interested
88in.
@@ -42,7 +42,7 @@ Add `[reagent/reagent-cursor "0.1.2"]` to `:dependencies` in `project.clj`.
4242
4343In your Reagent application ` (:require [reagent.cursor :as rc]) ` .
4444
45- There is two main functions available to create cursors: ` cursor ` and ` cur ` .
45+ There are two main functions available to create cursors: ` cursor ` and ` cur ` .
4646
4747## cursor
4848
@@ -77,7 +77,8 @@ arguments (the atom and a path), but is guaranteed to return a
7777cursor.
7878
7979Note that the atom argument is placed on the left, allowing
80- you to use a threading macro.
80+ you to use a thread-first macro (` cursor ` requires a thread-last
81+ macro).
8182
8283``` clj
8384
You can’t perform that action at this time.
0 commit comments