JSideris / DOThtml

A human-friendly way to build highly-dynamic web pages in pure JavaScript.
2 stars 4 forks source link

Application component that sets up the app in the document's body. #133

Closed JSideris closed 8 months ago

JSideris commented 1 year ago

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());

JSideris commented 8 months ago

Decided against this. Instead global styling will be done using dot.useStyles().