Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/ml-in-barcelona/server-reason-react

Server rendering Reason React components with OCaml natively
https://github.com/ml-in-barcelona/server-reason-react

ocaml reason reason-react

Last synced: about 1 month ago
JSON representation

Server rendering Reason React components with OCaml natively

Lists

README

        

> **Warning**
> This repo contains a few parts that are considered alpha-stage and not ready for production. The parts that are more stable 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 and non-implemented functions.
> This project enables sharing ReasonReact code between native and JavaScript and there's a lot of interesting pieces from this architecture. If you are interested, feel free to contact me in [Discord](https://discord.com/users/122441959414431745) or [Twitter](https://www.twitter.com/davesnx).

# server-reason-react

Re-implementation of `react`, `react-dom` and `react-dom/server` to run on the server and a few related libraries in Reason/OCaml, to enable Server-side Rendering for reason-react applications.

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)