4 ms·
If I built a web app with Reason can I reuse the code and turn it into a desktop app using Revery?
by continuations 8y ago
If I built a web app with Reason can I reuse the code and turn it into a desktop app using Revery?
- lasagnaphil 8y agoProbably if you only use the React/Redux libraries and nothing else. It seems the project doesn't use any Javascript, and uses the OCaml compiler to produce native binaries for each platform.
- ohadrau 8y agoUnfortunately, we aren't compiling pure React code to native -- for something like that Electron is probably the go-to solution for now. However, the reverse is true. Revery apps can be compiled into a web app without you needing to do anything (assuming you aren't using any native-only libraries with it). So all our example code is automatically able to be compiled to a JS web app.
- k__ 8y agoAs far as I can tell it would be the other way around. You create a Revery app and can build a macOS, Linux, Windows and Web version of it.