parse-to-react

0.6.4 • Public • Published

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

/parse-to-react/

    Package Sidebar

    Install

    npm i parse-to-react

    Weekly Downloads

    1

    Version

    0.6.4

    License

    none

    Unpacked Size

    613 kB

    Total Files

    4

    Last publish

    Collaborators

    • muhrusdi