function MyComponent(props) { return <p>Hello {props.name}</p> }
import React from 'react'; export default ({name}) => <p>Hello {name}</p>;
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.