UNPKG

radi

Version:

**Radi** is a tiny javascript framework.

14 lines (10 loc) 309 B
const mount = require('../../src/mount.js').default; const main = require('./app'); const app = mount(new main(), 'app'); if (module.hot) { module.hot.accept(); module.hot.dispose(() => { // Before restarting the app, we create a new root element and dispose the old one app.destroy(); }); }