Go Back to projects

hono-jsx-to-react

📦 Installation

npm install hono-jsx-to-react hono

📚 Usage

import { toReactNode } from "hono-jsx-to-react";

const element = <div> Hello World! </div>;
console.log(toReactNode(element));
// {
//   type: "div",
//   key: null,
//   props: {
//     children: "Hello World!"
//   },
// }

📄 License

Published under MIT License.