https://github.com/xlisp/minimal-react-reagent
通过Reagent和React互操作,才能更清晰了解React
https://github.com/xlisp/minimal-react-reagent
Last synced: 25 days ago
JSON representation
通过Reagent和React互操作,才能更清晰了解React
- Host: GitHub
- URL: https://github.com/xlisp/minimal-react-reagent
- Owner: xlisp
- Created: 2019-07-29T15:52:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T07:44:24.000Z (over 6 years ago)
- Last Synced: 2025-06-29T21:03:26.859Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.6 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 通过Reagent和React互操作,才能更清晰了解React: 不懂的地方用Java和JS来替代先,先跑起来先,逐一替换成Cljs,解释下面的问题
* 不知道react-window组件怎么用reagent来表示?
* 不知道material-ui组件,为什么row一直无法生效? => 逐个替换为cljs的组件来检验你的所有的cljs组件是否有效
Search the text IMPORTANT to see where you must care about.
See `src/App.js`, `src/foo/core.cljs`, `public/index.html`.
Hot-reload for both JavaScript and ClojureScript are available at development.
# For Dev
```
npx shadow-cljs watch app
# or C-c M-j in Emacs Cider
yarn start
```
# For Dist
```
# YOU MUST RUN THIS BUILD FIRST!!!!!!
# yarn build will copy all assets to build directory.
npx shadow-cljs release app
yarn build
```