Re:React on ES6+
by mikewhy on Wednesday July 08, 2015 @09:59AM
(#9851530)
Wouldn't you have to use `React.createFactory` in this case as well? (when not dealing with React.DOM components)
[ Parent
| on HN ]
Yes you do need to use it. I put each component in its own file and use Browserify to require them in like this:
MyComponent = React.createFactory require './my-component'
then you can do render: ->
(div {},
(MyComponent {})
)