create-factory-loader
Webpack loader to wrap exported react components in react.createFactory
.
Installing
npm install --save create-factory-loader
Example Usage
components/tab.coffee
:
: -> div null@propstext
components/tab_view.coffee
:
Tab = require 'create-factory!./tab' : -> for tab in @propstabs Tab text: tabname