diff --git a/index.js b/index.js index ff6b089..c19c0bd 100644 --- a/index.js +++ b/index.js @@ -52,7 +52,10 @@ function choo () { // start the application // (str?, obj?) -> DOMNode function start (rootId, opts) { - if (!opts) opts = rootId + if (!opts) { + opts = rootId + rootId = null + } opts = opts || {} const name = opts.name || 'choo' const initialState = {}