npm.io
0.6.4 • Published 4 years ago

parse-to-react

Licence
Version
0.6.4
Deps
0
Size
599 kB
Vulns
0
Weekly
0
Stars
1

Parse to React

A tool to convert JSX strings into React Components

Installation:

yarn add parse-to-react
//or 
npm install parse-to-react
Usage:
import parseToReact from 'parse-to-react'
let s = `<div className="text-2xl font-black">hi</div>`
...
return (
  <div>
    {parseToReact(s)}
  </div>
)