Alias react, react-dom to croact
It also supports react's lightweight modules and additional features to support react's components to other frameworks.
$ npm install croact- Fragment
Moveable: https://github.com/daybrush/moveableGuides: https://github.com/daybrush/guidesRuler: https://github.com/daybrush/ruler
- 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,
});