22 lines
356 B
JavaScript
22 lines
356 B
JavaScript
|
import * as riot from "riot";
|
||
|
import app from "./components/app.riot";
|
||
|
|
||
|
const main = {
|
||
|
init() {
|
||
|
// start-up actions here
|
||
|
|
||
|
// mount components
|
||
|
this.mount();
|
||
|
},
|
||
|
|
||
|
mount() {
|
||
|
// register core app component
|
||
|
riot.register("app", app);
|
||
|
|
||
|
// mount main app
|
||
|
riot.mount("app");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
main.init();
|