package reason-react
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=e366724937fa8484473ec94b5e72132da2c9900b006142baa808cd192a2fdf3b
sha512=2225be0339506af2b7e06ccb3d7aeec69eb76472c5602046ccc4b1cce24a8e66f95e556712f4b7fe8825fc6ebb7d3e083c403ca7ea062d00294d3cfc13cbb1a4
Description
ReasonReact helps you use Reason to build React components with deeply integrated, strong, static type safety.
It is designed and built by people using Reason and React in large, mission critical production React codebases.
Published: 05 Jun 2024
README
ReasonReact
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:
Editor Support
Looking for syntax highlighting for your favorite editor? Check out ReasonML Editor Plugins
Dependencies (5)
-
reason
>= "3.10.0"
-
reason-react-ppx
= version
-
melange
>= "3.0.0"
- ocaml
-
dune
>= "3.9"
Dev Dependencies (4)
-
odoc
with-doc
-
ocamlformat
= "0.24.0" & with-dev-setup
-
opam-check-npm-deps
= "1.0.0" & with-dev-setup
-
ocaml-lsp-server
with-dev-setup
Used by (10)
Conflicts
None