0.1.2 • Published 7 years ago
ss-component v0.1.2
react amw webpack
Get the AMD module located at ss-component.js
and include it in your project.
Here is a sample integration:
require.config({
paths: {
'ssComponent': 'ss-component'
}
});
require(['react', 'ssComponent'], function(React, ssComponent) {
React.render(React.createElement(ssComponent), 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
;