Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ml-in-barcelona/server-reason-react
Server render Reason React components with OCaml natively
https://github.com/ml-in-barcelona/server-reason-react
ocaml reason reason-react
Last synced: 2 days ago
JSON representation
Server render Reason React components with OCaml natively
- Host: GitHub
- URL: https://github.com/ml-in-barcelona/server-reason-react
- Owner: ml-in-barcelona
- License: mit
- Created: 2022-09-08T11:34:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-09T17:53:00.000Z (12 days ago)
- Last Synced: 2025-01-13T16:56:37.168Z (9 days ago)
- Topics: ocaml, reason, reason-react
- Language: OCaml
- Homepage: https://ml-in-barcelona.github.io/server-reason-react/local/server-reason-react/index.html
- Size: 4.87 MB
- Stars: 141
- Watchers: 9
- Forks: 9
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# server-reason-react
Re-implementation of `react`, `react-dom` and `react-dom/server` to run on the server and also, a [few related libraries](https://ml-in-barcelona.github.io/server-reason-react/local/server-reason-react/index.html#other-libraries) to enable Server-side rendering for reason-react applications, also contains a [few libraries](https://ml-in-barcelona.github.io/server-reason-react/local/server-reason-react/universal-code.html) and a [ppx](https://ml-in-barcelona.github.io/server-reason-react/local/server-reason-react/browser_only.html) to share code between native (compiled to machine code) and JavaScript (compiled by [Melange](https://melange.re)).
> **Warning**
> This repo contains a few parts that are considered experimental. The stable parts are used in production at [app.ahrefs.com](https://app.ahrefs.com) for all users and [wordcount.com](https://wordcount.com), but `Belt`, `Js` modules have missing APIs, non-implemented functions and unsafe code. Use it at your own risk.## Why
Explained more details in this blog post [sancho.dev/blog/server-side-rendering-react-in-ocaml](https://sancho.dev/blog/server-side-rendering-react-in-ocaml)## [Documentation](https://ml-in-barcelona.github.io/server-reason-react/local/server-reason-react/index.html)