silki
Version:
Cli tool for build react app, based on generator-react-multipage, create-react-app, roadhog. Support react multiple pages app develop.
11 lines (9 loc) • 298 B
JavaScript
import '../style/index.less';
import <%= component.className %> from './index';
// write your demo code here, below is an example
let data = "hello world";
let params = {
"name": "Jack"
}
const mountNode = document.getElementById('app');
new <%= component.className %>(mountNode, data, params);