reason-react

Reason bindings for ReactJS

Github stars Tracking Chart

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!

Main metrics

Overview
Name With Ownerreasonml/reason-react
Primary LanguageReason
Program languageJavaScript (Language Count: 8)
Platform
License:MIT License
所有者活动
Created At2017-03-26 06:25:03
Pushed At2025-07-27 05:00:34
Last Commit At
Release Count38
Last Release Name0.16.0 (Posted on 2025-07-22 11:56:06)
First Release Namev0.1.5 (Posted on 2017-06-21 20:24:06)
用户参与
Stargazers Count3.3k
Watchers Count63
Fork Count349
Commits Count1.2k
Has Issues Enabled
Issues Count276
Issue Open Count19
Pull Requests Count447
Pull Requests Open Count4
Pull Requests Close Count170
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private