包详细信息

croact

daybrush171.8kMIT1.0.4

Simple React for compatible use

react, compat, croact

自述文件

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 ```js import reactCompat from "rollup-plugin-react-compat";

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

```