function main () { render(h(App, { model: model }), screen) }
const App = props => { return h(List, { items: props.model.items, index: props.model.index }) }
fs.outputFile( path.resolve("output/index.html"), rds.renderToStaticMarkup(h(Page, {title: "Hello World!"})), () => console.log("Done!") );
render () { let {items} = this.props return h('list', { ref: 'list', top: 0, left: 0, width: 40, height: 20, border: { type: 'line' }, style: { border: { fg: 'white' }, item: { fg: 'auto', bg: 'black' }, selected: { fg: 'auto', bg: 'grey' } }, items: items }) }
const App = props => { return h(List, { items: props.model.items, index: props.model.index }) }
function main () { render(h(App, { model: model }), body) }