by mytranspiler · 11y ago · 0 comments
{div, a} = React.DOM
...
render: ->
(div {},
(a {href: 'foo'}, 'bar')
)
The only downside is having to extract the tags from React.DOM.I haven't had any issues without the parens, but then again I've only just fooled around.
You probably know better.
MyComponent = React.createFactory require './my-component'
then you can do render: ->
(div {},
(MyComponent {})
)