Sycamore is a reactive library for creating web apps in Rust and WebAssembly.
A reactive framework that is similar to SolidJS in speed, ease, and use is named Sycamore. It can be used to build Rust net purposes that make use of WebMeeting's abilities. You won't need to write JavaScript because Sycamore includes many of the Rust functions you'll need to build an online app frontend.
#[component]
fn Hello<G: Html>(cx: Scope) -> View<G> {
view! { cx,
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!
sycamore-rs.netlify.app
All the examples are hosted under sycamore-rs.netlify.app/examples/<example_name>
with <example_name>
being the name of the example you want to view. For instance, the todomvc
example is hosted on sycamore-rs.netlify.app/examples/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 localhost:8080
in your browser to see "Hello World!".
Perseus is a fullstack framework built with Sycamore. Think NextJS or SvelteKit but with no JavaScript. Everything from backend to frontend is built with pure Rust!
Don't think Sycamore is for you? Thankfully, there are plenty of alternatives!
#rust #webassembly