Basic Website
This commit is contained in:
14
src/main.rs
Normal file
14
src/main.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Declare the 'home' module, making the components inside available.
|
||||
mod home;
|
||||
|
||||
// Import the Home component from the 'home' module.
|
||||
use home::Home;
|
||||
|
||||
/// The main function, the entry point of the Rust application.
|
||||
fn main() {
|
||||
// Renders the Yew application.
|
||||
// It creates a new renderer for the root component (Home) and mounts it.
|
||||
// The component will be rendered inside the 'body' element by default,
|
||||
// or to the element specified in the index.html if using `with_root`.
|
||||
yew::Renderer::<Home>::new().render();
|
||||
}
|
||||
Reference in New Issue
Block a user