Browse Source

Make opts example fn clearer

pull/2/head
Luke Childs 8 years ago
parent
commit
016940dfa1
  1. 4
      README.md

4
README.md

@ -88,7 +88,9 @@ Obviously you don't need to follow this exact pattern, maybe you already have an
```js
module.exports = function(text, opts = {}) {
const document = opts.document || window.document;
const doc = opts.document || window.document;
const div = doc.createElement('div');
...
```

Loading…
Cancel
Save