mirror of https://github.com/n2geoff/um
use const
This commit is contained in:
parent
52c6feef4a
commit
3fd153483e
|
@ -14,10 +14,10 @@
|
||||||
*/
|
*/
|
||||||
export default function app(opts) {
|
export default function app(opts) {
|
||||||
// initial setup
|
// initial setup
|
||||||
let state = check(opts.state, {});
|
const state = check(opts.state, {});
|
||||||
let view = check(opts.view, () => null);
|
const view = check(opts.view, () => null);
|
||||||
let actions = check(opts.actions, {});
|
const actions = check(opts.actions, {});
|
||||||
let mount = opts.mount || "body";
|
const mount = opts.mount || "body";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* simple type validation check
|
* simple type validation check
|
||||||
|
|
Loading…
Reference in New Issue