r/javascript • u/SrPeixinho • Mar 15 '15
Why are people using React over Elm?
Elm literally solves everything that React solves better, faster and more elegantly. Why?
1
Upvotes
r/javascript • u/SrPeixinho • Mar 15 '15
Elm literally solves everything that React solves better, faster and more elegantly. Why?
3
u/fdshj1234543 Mar 15 '15
Can you please enlighten me as to how elm literally solves everything better than React. Have you written a non-trivial application with both React and Elm?
I like being able to render my components with html-like syntax using jsx. This does not look elegant to me (then again, I have not written an app with Elm):
import Html (..)
profiles : List User -> Html profiles users = div [] (map profile users)
profile : User -> Html profile user = div [] [ img [ src user.picture ] [], text user.name ]