Do a export default class App extends DotApplication{} where DotApplication is a DotComponent. The root element of a DotApplication should be the document body, and styling will apply to the document body as well. To start the app, just instantiate the class like new App() (no more dot("body").style(...).h(new App());
Do a
export default class App extends DotApplication{}
whereDotApplication
is aDotComponent
. The root element of aDotApplication
should be the document body, and styling will apply to the document body as well. To start the app, just instantiate the class likenew App()
(no moredot("body").style(...).h(new App());