0.0.5 • Published 10 months ago

jsx-tags v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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

0.0.5

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago