mirror of
https://github.com/status-im/reagent.git
synced 2025-01-27 12:16:15 +00:00
Update README since function namespace was changed
we replace the function, reagent.core/render -> reagent.dom/render
This commit is contained in:
parent
0a00532b6f
commit
fdce1a1167
@ -101,7 +101,7 @@ You mount the component into the DOM like this:
|
||||
|
||||
```clj
|
||||
(defn mountit []
|
||||
(r/render [childcaller]
|
||||
(rd/render [childcaller]
|
||||
(.-body js/document)))
|
||||
```
|
||||
|
||||
@ -109,7 +109,8 @@ assuming we have imported Reagent like this:
|
||||
|
||||
```clj
|
||||
(ns example
|
||||
(:require [reagent.core :as r]))
|
||||
(:require [reagent.core :as r]
|
||||
[reagent.dom :as rd]))
|
||||
```
|
||||
|
||||
State is handled using Reagent's version of `atom`, like this:
|
||||
|
Loading…
x
Reference in New Issue
Block a user