Skip to content

Commit

Permalink
docs: document h export instead of val()
Browse files Browse the repository at this point in the history
  • Loading branch information
treshugart committed Jun 3, 2017
1 parent c23d160 commit 578f305
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ render(<ReactComponent />, document.getElementById('root'));

### Real DOM

Val ships with a default adapter that generates real DOM nodes. To do this, simply pass no arguments to the `val()` function:
Val ships with a default adapter that generates real DOM nodes. To do this, simply import the `h` function:

```js
/** @jsx h*/
import val from '@skatejs/val';

const h = val();
import { h } from '@skatejs/val';

// <div>test</div>
console.log(<div>test</div>.outerHTML);
Expand Down

0 comments on commit 578f305

Please sign in to comment.