How to use the omio.render function in omio

To help you get started, we’ve selected a few omio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Tencent / omi / packages / omi-kbone / src / index.js View on Github external
export default function createApp() {
  const container = document.createElement('div')
  container.id = 'app'
  document.body.appendChild(container)

  render(, '#app', store)
}
github wechat-miniprogram / kbone / examples / demo8 / src / main.mp.js View on Github external
export default function createApp() {
  const container = document.createElement('div')
  container.id = 'app'
  document.body.appendChild(container)

  render(, '#app', store)
}
github Tencent / omi / packages / omi-kbone / src / log.js View on Github external
export default function createApp() {
  const container = document.createElement('div')
  container.id = 'app'
  document.body.appendChild(container)

  render(<div>我是log页面</div>, '#app')
}
github wechat-miniprogram / kbone / examples / demo6 / src / main.js View on Github external
import { render, h } from 'omio'
import './components/todo'
import Store from './store'

render(, '#app', new Store)
github wechat-miniprogram / kbone / examples / demo6 / src / main.mp.js View on Github external
export default function createApp() {
  const container = document.createElement('div')
  container.id = 'app'
  document.body.appendChild(container)
  render(, '#app', new Store)
}

omio

Omi for old browsers(IE8+).

MIT
Latest version published 4 years ago

Package Health Score

58 / 100
Full package analysis