Crates.io | sycamore-router-macro |
lib.rs | sycamore-router-macro |
version | 0.9.1 |
source | src |
created_at | 2021-06-27 19:00:36.295117 |
updated_at | 2024-11-17 16:40:46.079993 |
description | proc-macro crate for sycamore-router |
homepage | https://github.com/sycamore-rs/sycamore |
repository | https://github.com/sycamore-rs/sycamore |
max_upload_size | |
id | 415490 |
size | 26,408 |
Sycamore is a reactive library for creating web apps in Rust and WebAssembly.
#[component]
fn Hello() -> View {
view! {
p { "Hello World!" }
}
}
Sycamore is extensively documented:
sycamore
crate.Still have questions? Don't hesitate to stop by our friendly Discord server.
Sycamore has many examples for your reference in the
examples/
directory. Be sure to
check them out!
examples.sycamore.dev
All the examples are hosted under examples.sycamore.dev/<example_name>
with
<example_name>
being the name of the example you want to view. For instance, the todomvc
example
is hosted on
examples.sycamore.dev/todomvc
.
All the examples can also be built locally using Trunk. For instance, the
following command builds and serves the todomvc
example:
cd examples/todomvc
trunk serve
Now open up http://localhost:8080 in your browser to see the example running in action.
Don't think Sycamore is for you? Thankfully, there are plenty of alternatives!
Sycamore would not have been possible without the wonderful contributions from the community. Thank you!
Special thanks to @nate-sys for designing the Sycamore logo!