reactify-json

0.1.25 • Public • Published

This package's goal is simple: obtain a React Component from whatever you receive from jsonify-html.

Usage

  • Import the package:
import jsonifyHTML from "jsonify-html";
import ReactifyJSON from "reactify-json";
  • Generate a JSON structure from your HTML:
const json =jsonifyHTML.makeJSONfromHTML("<html><body>bruh</body></html>");
  • Feed the JSON into the reactifier:
const output = <ReactifyJSON json={json} />
  • Profit:
// inside your react component
render() {
    return output;
}

/reactify-json/

    Package Sidebar

    Install

    npm i reactify-json

    Weekly Downloads

    0

    Version

    0.1.25

    License

    MIT

    Unpacked Size

    6.37 kB

    Total Files

    3

    Last publish

    Collaborators

    • mk360