This commit is contained in:
Irakli Gozalishvili 2017-07-03 16:45:35 -07:00
Родитель f2b9b42308
Коммит 27c230fd1f
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -9,16 +9,12 @@ This is a [reflex][] application view driver that uses [virtual-dom][] library f
## Usage ## Usage
```js ```js
import * as App from "./app" import {init, update, view} from "./app"
import {start} from "reflex" import {start} from "reflex"
import {Renderer} from "reflex-virtual-dom-driver" import {Renderer} from "reflex-virtual-dom-driver"
const renderer = new Renderer({target: document.body}) const renderer = new Renderer({target: document.body})
const app = start({ const app = start({init, update, view}, ({view}) => {
initial: App.initialize(),
update: App.update,
view: App.view
}, ({view}) => {
renderer.render(view) renderer.render(view)
}) })
``` ```