
Tutorial | Yew
Yew is a modern Rust framework for building front-end web apps using WebAssembly. Yew encourages a reusable, maintainable, and well-structured architecture by leveraging Rust's powerful type system.
Yew
HTML macro Features a macro for declaring interactive HTML with Rust expressions. Developers who have experience using JSX in React should feel quite at home when using Yew.
Awesome Yew | Yew
yew-hooks - Custom Hooks library for Yew, inspired by streamich/react-use and alibaba/hooks. yew-side-effect - Reconcile Side Effects in Yew Applications, inspired by react-side-effect and react-helmet.
Getting Started | Yew
The minimum supported Rust version (MSRV) for Yew is 1.84.0. Older versions will not compile. You can check your toolchain version using rustup show (under "active toolchain") or rustc --version. To …
Editor Setup | Yew
Rust-Yew extension is available on VSC Marketplace, providing syntax highlight, renames, hover, and more. Emmet support should work out of the box, if not please fall back to editing the settings.json file:
Examples | Yew
The Yew repository contains many examples (in various states of maintenance). We recommend perusing them to get a feel for how to use different features of the framework.
示例 | Yew
This is unreleased documentation for Yew Next version. For up-to-date documentation, see the latest version (Next).
Server-side Rendering | Yew
By default, Yew components render on the client side. When a viewer visits a website, the server sends a skeleton HTML file without any actual content and a WebAssembly bundle to the browser.
开始使用 | Yew
你需要一些工具来编译、构建、打包和调试你的 Yew 应用程序。 在最开始,我们建议使用 Trunk。 Trunk 是一个用于 Rust 的 WASM Web 应用程序打包工具。
Build a sample app | Yew
You have now successfully set up your Yew development environment, and built your first web application. Experiment with this application and review the examples to further your learning.