@hellomonday/partial
v1.0.0
Published
The partial utility can take a string and an optional node and return a valid HTML element
Downloads
39
Keywords
Readme
@hellomonday/partial
The partial utility can take a string and an optional node and return a valid HTML element.
Install
$ npm install --save @hellomonday/partial
Usage
import html from './valid-html.html';
// Where html is a valid html string and 'section' is a valid node in the string
this.element = partial(html, 'section');
License
MIT © Hello Monday