Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Timer from "./Timer/Timer";
import DisplayAnything from "./DisplayAnything/DisplayAnything";
import FavoriteShow from "./FavoriteShow/FavoriteShow";
import HoverLetter from "./HoverLetter/HoverLetter";
import Navigation from "./Navigation/Navigation";
import ShowCode from "./ShowCode/ShowCode";
import Tabs from "./Tabs/Tabs";
import AddHighlight from "./AddHighlight/AddHighlight";
import domInsert from "./domInsert";
import "./app.scss";
feather.replace();
console.time("appCreation");
const App = new Init({
selector: document.getElementById("root"),
components: {
Counter,
Timer,
DisplayAnything,
FavoriteShow,
HoverLetter,
Navigation,
ShowCode,
Tabs,
AddHighlight
},
appCreated: () => console.log("app created")
});
console.timeEnd("appCreation");
}
stateDidUpdate() {
this.setYellow();
}
setYellow() {
if (this.state.ofFive) {
this.$root.classList.add("yellow");
} else {
this.$root.classList.remove("yellow");
}
}
}
console.time('App')
const App = new Init({
selector: document.getElementById("root"),
components: {
Counter
},
appCreated: () => console.log("something")
});
console.timeEnd('App')