https://github.com/gavinning/string2dom
string to dom, string to virtual-dom
https://github.com/gavinning/string2dom
Last synced: 10 months ago
JSON representation
string to dom, string to virtual-dom
- Host: GitHub
- URL: https://github.com/gavinning/string2dom
- Owner: gavinning
- Created: 2018-07-23T08:54:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T10:56:31.000Z (over 7 years ago)
- Last Synced: 2025-03-03T07:02:39.319Z (10 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
String2dom
---
字符串转dom
### Install
```sh
npm i string2dom --save
```
### Usage
```js
import string2dom from 'string2dom'
// dom: Array
let dom = string2dom('
')
// page: HTMLDivElement
let page = string2dom('
')[0]
```