https://github.com/daybrush/croact
https://github.com/daybrush/croact
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daybrush/croact
- Owner: daybrush
- Created: 2022-08-25T03:44:53.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-04T13:36:15.000Z (over 2 years ago)
- Last Synced: 2025-01-23T02:07:09.114Z (9 months ago)
- Language: TypeScript
- Size: 171 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
```bash
$ npm install croact
```## No supported
* Fragment## Used Components
* `Moveable`: https://github.com/daybrush/moveable
* `Guides`: https://github.com/daybrush/guides
* `Ruler`: https://github.com/daybrush/ruler## 🚀 How to use
* self render
```htmlSelf
``````jsx
import { renderSelf } from "croact";renderSelf(
Self, document.querySelector("div"));```
* Rollup
```js
import reactCompat from "rollup-plugin-react-compat";const reactPlugin = reactCompat({
useCroact: true,
resolveCompat: true,
});```