ReactJS JSX has a method for easily adding lots of properties to a component:
var props = {}; props.foo = x; props.bar = y; var component =
The usual workflow of ReactJS would be transforming the JSX via Babel (by a build tool like Browserify/Webpack) before serving it to the client. Hence you get all the ES6 (or ESNext) goodies.
Getting Started | React