merak-core
v3.0.1
Published
merak runtime in browser
Downloads
55
Readme
merak-core
merak runtime in browser
- create Merak Instance spa example
import { CompileLoader, Merak } from 'merak-core'
const loader = new CompileLoader()//
const instance = new Merak(id, url, { loader })
import { Merak, SSRLoader } from 'merak-core'
const loader = new SSRLoader()//
const instance = new Merak(id, url, { loader })
- mount custom element
<merak-app data-merak-id="id"></merak-app>