Update README since function namespace was changed

we replace the function, 
reagent.core/render -> reagent.dom/render
This commit is contained in:
Mokke Meguru 2020-03-18 14:13:14 +09:00 committed by GitHub
parent 0a00532b6f
commit fdce1a1167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: