JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 71408
  • Score
    100M100P100Q146954F
  • License MIT

Simple React for compatible use

Package Exports

  • croact
  • croact/dist/croact.cjs.js
  • croact/dist/croact.esm.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (croact) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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,
});