Post

In ReScript you can put expressions almost anywhere. Assign expressions to variables, put them anywhere in JSX, put them directly into function arguments, etc. Massive readability and productivity boosters, and you'll love it if you haven't written in a language with it before.

5 reposts14 likes

Co-locating logic to where it's used, and not having to precompute it in a variable or use an IIFE to co-locate, is usually something new comers appreciate the most in ReScript. Co-location makes code easier to read, maintain and reason about.