mirror of
https://github.com/status-im/reagent.git
synced 2025-02-05 00:23:48 +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
|
```clj
|
||||||
(defn mountit []
|
(defn mountit []
|
||||||
(r/render [childcaller]
|
(rd/render [childcaller]
|
||||||
(.-body js/document)))
|
(.-body js/document)))
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -109,7 +109,8 @@ assuming we have imported Reagent like this:
|
|||||||
|
|
||||||
```clj
|
```clj
|
||||||
(ns example
|
(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:
|
State is handled using Reagent's version of `atom`, like this:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user