3 ms·
Wouldn't you have to use `React.createFactory` in this case as well? (when not dealing with React.DOM components)
by mikewhy 11y ago
Wouldn't you have to use `React.createFactory` in this case as well? (when not dealing with React.DOM components)
- dugmartin 11y agoYes 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 {}) )