reason-react

Reason bindings for ReactJS

Github星跟蹤圖

ReasonReact

Come join us in Discord!

Example

/* Greeting.re */
[@react.component]
let make = (~name) => <h1> {React.string("Hello " ++ name)} </h1>

in another file:

ReactDOMRe.renderToElementWithId(<Greeting name="Taylor" />, "root");

For a more in-depth example, see: https://github.com/reasonml-community/reason-react-hacker-news

Quick start

BuckleScript compiles ReasonML code to JavaScript. You can get it with:

npm install --global bs-platform
bsb -init my-react-app -theme react-hooks
cd my-react-app && npm install && npm start
# in another tab
npm run server

Documentation

See https://reasonml.github.io/reason-react/

Contribute

git clone https://github.com/reasonml/reason-react.git
cd reason-react
npm install
npm start

Then add some files somewhere (don't forget to change bsconfig.json, if needed).

See the README inside src for more info!

主要指標

概覽
名稱與所有者reasonml/reason-react
主編程語言Reason
編程語言JavaScript (語言數: 8)
平台
許可證MIT License
所有者活动
創建於2017-03-26 06:25:03
推送於2025-06-04 12:49:12
最后一次提交
發布數37
最新版本名稱0.15.0 (發布於 2024-08-19 11:09:57)
第一版名稱v0.1.5 (發布於 2017-06-21 20:24:06)
用户参与
星數3.3k
關注者數63
派生數349
提交數1.2k
已啟用問題?
問題數276
打開的問題數23
拉請求數446
打開的拉請求數5
關閉的拉請求數168
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?