diff --git a/src/mini-renderer.js b/src/mini-renderer.js index 874573b..2dbc453 100644 --- a/src/mini-renderer.js +++ b/src/mini-renderer.js @@ -66,9 +66,16 @@ const render = createRenderer({ }) const createApp = (...args) => { - //TODO -} + const app = render.createApp(...args); -export { - createApp -} + const mount = (selector) => + app.mount( + typeof selector === "string" ? document.querySelector(selector) : selector + ); + + return { + mount + }; +}; + +export { createApp };