---
title: Deku v2
category: JavaScript libraries
+layout: 2017/sheet
+intro: |
+ Quick reference for [Deku](https://www.npmjs.com/package/deku), a minimal virtual DOM library.
---
-## Components
+### Components
```js
/** @jsx element */
export default { render, onCreate, onRemove }
```
-## Rendering
+### Rendering
```js
import { createStore } from 'redux'
let render = createRenderer(document.body, store.dispatch)
// Update the page and add redux state to the context
-render(
- <MyButton>Hello World!</MyButton>,
- store.getState()
- )
+render(<MyButton>Hello World!</MyButton>, store.getState())
```