convert-element-to-react

Convert HTML DOM elements to React elements

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
convert-element-to-react
000.1.33 months ago3 months agoMinified + gzip package size for convert-element-to-react in KB

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"));

Originally based on https://github.com/shaaijs/html-element-to-react