How to use the domponent/dist/domponent.development.Init function in domponent

To help you get started, we’ve selected a few domponent 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 tamb / domponent / examples / html-dev / src / index.js View on Github external
import { Init } from 'domponent/dist/domponent.development'
import Counter from "./Counter";
import CurrentTime from "./CurrentTime";
import DisplayAnything from "./DisplayAnything";
import Name from "./Name";
import domInsert from "./domInsert";

console.time('appCreation');
const App = new Init({
  selector: document.getElementById("root"),
  components: {
    Counter,
    CurrentTime,
    DisplayAnything,
    Name
  },
  appCreated: () => console.log("app created")
});
console.timeEnd('appCreation');

// const mills = document.getElementById('mills');
// const up = document.getElementById('up');
// const down = document.getElementById('down');
// const total = document.getElementById('total');

domponent

Build components with the HTML you already have.

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis