Skip to content

Commit

Permalink
Added example to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshort committed Dec 28, 2015
1 parent 5257210 commit 24f9e8e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ We support the latest two versions of each browser. This means we only support I

[![Sauce Test Status](https://saucelabs.com/browser-matrix/deku.svg)](https://saucelabs.com/u/deku)

### Example

```js
import {dom, element} from 'deku'
let render = dom.createRenderer(document.body)

let MyButton = {
render: ({ children }) {
return <button class="my-button">{children}</button>
}
}

render(
<div class="App">
<MyButton>Hello World!</MyButton>
</div>
)
```

### Documentation

You can [read the documentation online](https://anthonyshort.gitbooks.io/dekujs/content/) at Gitbook.
Expand Down

0 comments on commit 24f9e8e

Please sign in to comment.