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

1.0.4 • Public • Published

Alias react, react-dom to croact

It also supports react's lightweight modules and additional features to support react's components to other frameworks.

⚙️ Installation

npm

$ npm install croact

No supported

  • Fragment

Used Components

🚀 How to use

  • self render
<div>Self</div>
import { renderSelf } from "croact";


renderSelf(<div>Self</div>, document.querySelector("div"));
  • Rollup
import reactCompat from "rollup-plugin-react-compat";

const reactPlugin = reactCompat({
    useCroact: true,
    resolveCompat: true,
});

Readme

Keywords

Package Sidebar

Install

npm i croact

Weekly Downloads

9,887

Version

1.0.4

License

MIT

Unpacked Size

414 kB

Total Files

48

Last publish

Collaborators

  • younkue