UNPKG

storybook-coconut

Version:

Storybook for coconut: View coconut.vdom components in isolation with hot reloading.

13 lines (12 loc) 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var global_1 = require("global"); var vdom_1 = require("./vdom"); var rootElement = global_1.document.getElementById('root'); function renderMain(_a) { var storyFn = _a.storyFn, selectedKind = _a.selectedKind, selectedStory = _a.selectedStory, showMain = _a.showMain, showError = _a.showError, forceRender = _a.forceRender; var element = storyFn(); showMain(); vdom_1.mount(rootElement, element); } exports.default = renderMain;