package reason-react-ppx

  1. Overview
  2. Docs
React.js JSX PPX

Install

dune-project
 Dependency

Authors

Maintainers

Sources

reason-react-0.16.0.tbz
sha256=7ac3c1fa6bc71d34379946082eb90e8cc10b27144322c5a578573123038f435c
sha512=e1064505920fbac42c32850252da268fec3638da7535ba8ea48999cd539048ba0cfcffa84757d857edd9942d6f24fa1af833682ff6898967cd3656641ee8365c

Description

reason-react JSX PPX

Published: 05 Aug 2025

README

ReasonReact

PRs Welcome contributors discord twitter

ReasonReact is a safer, simpler way to build React components. You get a great type system with an even better developer experience. Why choose ReasonReact? Read more here

ReasonReact is just React.js under the hood. This makes it super easy to integrate with your current Next.js, Create React App, JavaScript, Flowtype or TypeScript project. Learn more about getting started here

Example

/* Greeting.re */

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

See all of our examples here. For a full application, check out reason-react-hacker-news.

Using Your Favorite Javascript Libraries

The same way that TypeScript has type annotations, we have bindings. Bindings are libraries that allow you to import a popular project (like lodash) or to import your own local file. ReasonReact is in fact an example of a binding!

Documentation

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

Contribute

We welcome all contributors! Anything from docs to issues to pull requests. Please help us :smile:

./CONTRIBUTING.md

Editor Support

Looking for syntax highlighting for your favorite editor? Check out ReasonML Editor Plugins

Dependencies (4)

  1. ppxlib >= "0.33.0" & < "0.36.0"
  2. reason >= "3.12.0"
  3. ocaml >= "4.14"
  4. dune >= "3.9"

Dev Dependencies (3)

  1. odoc with-doc
  2. ocamlformat = "0.27.0" & with-dev-setup
  3. merlin with-test

Conflicts

None

OCaml

Innovation. Community. Security.