Skip to content

Commit

Permalink
Added quote for fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenbroesby committed Nov 13, 2016
1 parent f8f6c80 commit 45eb966
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ document.body.appendChild(render(element, state))

The fragment resembles the behavior of [DocumentFragment](https://developer.mozilla.org/en/docs/Web/API/DocumentFragment). For an comparative example of document fragment implementation, see [JavaScript DocumentFragment](https://davidwalsh.name/documentfragment).

> Using DocumentFragments is faster than repeated single DOM node injection and allows developers to perform DOM node operations (like adding events) on new elements instead of mass-injection via innerHTML. Keep DocumentFragment close by when performing lots of DOM operations -- it could speed up your app considerably!
```js
const render = require('brisky/render')
const s = require('vigour-state/s')
Expand Down

0 comments on commit 45eb966

Please sign in to comment.