jsx-tags
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

jsx-tags

A tool for using react without jsx

Install

npm install jsx-tags

Usage

import ReactDOM from "react-dom/client";
import { tags, createComponent } from "jsx-tags";

const { div, h1, span } = tags;

const App = createComponent(() => {
  // prettier-ignore
  return (
    div({ className: "a" })(
      h1()("hello"),
      span()("world")
    )
  );
});

ReactDOM.createRoot(document.getElementById("root")!).render(App());

License

MIT anuoua

Readme

Keywords

Package Sidebar

Install

npm i jsx-tags

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

8.12 kB

Total Files

10

Last publish

Collaborators

  • anuoua