Hacker News new | ask | show | jobs
by pjmlp 2771 days ago
React requires too much FP concepts for the typical average enterprise developer.

It feels like doing Haskell with JavaScript.

2 comments

You can write haskell style in any language. but you don’t have to.

function MyComponent(props) { return <p>Hello {props.name}</p> }

    import React from 'react';

    export default ({name}) => <p>Hello {name}</p>;
So much nicer than Angular.
> You can write haskell style in any language.

It would be great if that was true. The fact is that you can not copy Haskell in any mainstream language (Lisp gets the closest), and that hurts.

I dunno--most of what I end up doing has state, if not context. Not super Haskell-ish.