1.0.2 • Published 4 years ago
@mixpeal/string-to-elements v1.0.2
It convert strings to html elements, by breaking the sentence down into words and wrapping them with element
Installation
# install dependencies
$ npm i @mixpeal/string-to-elements
Then import import it like this:
Usage
import { elementUp } from "@mixpeal/string-to-elements";
elementUp('A demo string');
#ouput
<span>A</span> <span>demo</span> <span>string</span>