Skip to content

@GianlucaGuarini GianlucaGuarini released this Nov 30, 2019 · 3 commits to master since this release

  • Update improve performance
  • Add the meta parameter to the component function to inject slots and attributes
import { component } from 'riot'
import App from './App.riot'

const app = component(App)

app(
  document.querySelector('app'), 
  { message: 'hello' }, 
  // slots and attributes should be valid @riotjs/dom-bindings objects
  { slots: [], attributes: [] }
)
Assets 2
You can’t perform that action at this time.