Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

简介

Introduction

本书旨在介绍 Leptos Web 框架。它将逐步讲解构建应用程序所需的基础概念,从一个简单的在浏览器中渲染的应用程序开始,逐步向具有服务器端渲染和注水的全栈应用程序迈进。

This book is intended as an introduction to the Leptos Web framework. It will walk through the fundamental concepts you need to build applications, beginning with a simple application rendered in the browser, and building toward a full-stack application with server-side rendering and hydration.

本指南并不假设你了解任何关于细粒度响应式或现代 Web 框架的细节。它假设你熟悉 Rust 编程语言、HTML、CSS、DOM 以及基本的 Web API。

The guide doesn’t assume you know anything about fine-grained reactivity or the details of modern Web frameworks. It does assume you are familiar with the Rust programming language, HTML, CSS, the DOM, and basic Web APIs.

Leptos 与 Solid (JavaScript) 和 Sycamore (Rust) 等框架最为相似。它与 React (JavaScript)、Svelte (JavaScript)、Yew (Rust) 和 Dioxus (Rust) 等其他框架也有一些相似之处,因此了解其中一个框架也可能使你更容易理解 Leptos。

Leptos is most similar to frameworks like Solid (JavaScript) and Sycamore (Rust). There are some similarities to other frameworks like React (JavaScript), Svelte (JavaScript), Yew (Rust), and Dioxus (Rust), so knowledge of one of those frameworks may also make it easier to understand Leptos.

你可以在 Docs.rs 找到关于 API 各部分的更详细文档。

You can find more detailed docs for each part of the API at Docs.rs.

本书的源代码可以在这里找到。欢迎提交修正错别字或优化表述的 PR。

The source code for the book is available here. PRs for typos or clarification are always welcome.