👿 Simple micro-front-end framework.
-
lifecycle loop
-
shadow dom
-
scoped css
-
proxy sandbox
-
html loader
-
mixins
<one-app></one-app>
<two-app></two-app>
import { register, start } from 'berial'
register(
'one-app',
'http://localhost:3000/one.html',
(location) => location.hash === '#/app1'
)
register(
'two-app',
'http://localhost:3000/two.html',
(location) => location.hash === '#/app2'
)
start()
import { mixin } from 'berial'
mixin({
bootstrap: () => {},
mount: () => {},
unmount: () => {}
})
mixins will apply all apps
MIT ©yisar ©h-a-n-a