react comp
Get the AMD module located at react-comp.js
and include it in your project.
Here is a sample integration:
require.config({
paths: {
'react': 'vendor/bower_components/react/react',
'ReactComp': 'react-comp'
}
});
require(['react', 'ReactComp'], function(React, ReactComp) {
React.render(React.createElement(ReactComp), document.getElementById('widget-container'));
});
Development
- Development server
npm start
. - Continuously run tests on file changes
npm run watch-test
; - Run tests:
npm test
; - Build
npm run build
;