DEV Community

Discussion on: Comparing Elm to React/Redux

Collapse
 
recss profile image
Kevin K. Johnson

Would it be more fair to compare Elm to ReasonML?

Collapse
 
rametta profile image
Jason

I don't think it would be more or less fair. The point was to show the similarities and how they are not much different, in order to get more people interested in it. If I compared Elm to Reason then not many people would relate to it.

Collapse
 
csaltos profile image
Carlos Saltos

Good idea !!

Collapse
 
fhammerschmidt profile image
Florian Hammerschmidt

Absolutely. Both are statically typed languages which compile down to JS (strictly speaking, not ReasonML, but Bucklescript) with a sound type system (other than typescript).

But imho Reason is easier to learn for JS developers, especially React developers, because of syntax similarities. Also, interop (which you probably will need in a bigger project) is better in Reason.

Elm is a cleaner approach though, and is very fitting for smaller, self-contained projects.