https://github.com/mowtwo/rescriptreact
基于ReScript的React整合方案
https://github.com/mowtwo/rescriptreact
react rescript
Last synced: about 2 months ago
JSON representation
基于ReScript的React整合方案
- Host: GitHub
- URL: https://github.com/mowtwo/rescriptreact
- Owner: mowtwo
- Created: 2021-09-10T03:30:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-10T07:20:39.000Z (over 3 years ago)
- Last Synced: 2025-02-07T16:34:43.869Z (4 months ago)
- Topics: react, rescript
- Language: ReScript
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 基于ReScript的React整合方案
## 技术栈
- ReScript
- React
- ReactDom
- Snowpack
- Emotion
## 使用
首先需要克隆下来
然后通过`yarn`或者`npm`安装依赖
```bash
yarn
# or
npm i
```
## 运行
这里默认使用`yarn`,npm用法类似
```bash
yarn watch #启动bsb对ReScript进行实时编译
yarn dev # 对编译后的代码进行运行
# or
yarn build # 进行打包
```