An open API service indexing awesome lists of open source software.

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

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
```