#[main]Expand description
Marco that marks an entry point of the app
Note: Html, head and body tags are required by vertigo to properly take over the DOM
Note 2: When using external tailwind, make sure the source tailwind.css file is in the same directory as usage of this macro.
use vertigo::prelude::*;
#[vertigo::main]
fn app() -> DomNode {
dom! {
<html>
<head/>
<body>
<div>"Hello world"</div>
</body>
</html>
}
}