ReasonML: React as a Language and what the Future looks like
summary
A visual mobile app builder (Draftbit) runs a compiled compiler in the browser and a WebAssembly phone preview, with layers gradually ported from JavaScript to Reason for fewer runtime errors and much faster feedback. The stack uses Reason/OCaml + BuckleScript to target JavaScript, Expo + React Native, GraphQL/Apollo and Postgres; GraphQL cuts ~30% server and ~70% client code in this workflow. BuckleScript compiles in milliseconds and enables aggressive tree-shaking (immutable.js 55KB → 899 bytes).
AI-written summary · about
chapters (17)
- 0:00Intro
- 1:411. Scan QR Code 2. Drag Component
- 7:04We used to start with Javascript
- 11:02amazing developer productivity
- 12:13A functional programming language
- 12:26Powerful pattern matching, functions
- 16:04What does a React component look like?
- 20:34Belt is the standard library shipped with Reason
- 21:28Convert your array into a React element
- 21:49Hooks are the future
- 24:22Pattern matching is a switch statement on steroids
- 27:15gen Type generates bindings between Reason & JavaScript
- 30:53How do I add Reason to my Javascript project?
- 33:37The compiled JavaScript is readable
- 35:28The compiled JavaScript is faster
- 36:16Webpack 55,000 Bytes
- 36:52Binding Javascript to Reason








