convert-element-to-react
v0.1.3
Published
Convert HTML DOM elements to React elements
Downloads
4
Readme
convert-element-to-react
Convert HTML DOM elements to React
npm i --save convert-element-to-react
Usage
import React from "react";
import ReactDOM from "react-dom";
import convertElementToReact from "convert-element-to-react";
const App = convertElementToReact(htmlElement);
ReactDOM.render(App, document.getElementById("app"));