book.leptos.dev
Open in
urlscan Pro
2606:50c0:8000::153
Public Scan
Submitted URL: http://book.leptos.dev/
Effective URL: https://book.leptos.dev/
Submission: On January 06 via api from US — Scanned from DE
Effective URL: https://book.leptos.dev/
Submission: On January 06 via api from US — Scanned from DE
Form analysis
1 forms found in the DOM<form id="searchbar-outer" class="searchbar-outer">
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
</form>
Text Content
1. 1. Introduction 2. 2. Getting Started 3. 1. 2.1. Leptos DX 2. 2.2. The Leptos Community and leptos-* Crates 4. 3. Part 1: Building User Interfaces 5. 1. 3.1. A Basic Component 2. 3.2. Dynamic Attributes 3. 3.3. Components and Props 4. 3.4. Iteration 5. 3.5. Iterating over More Complex Data 6. 3.6. Forms and Inputs 7. 3.7. Control Flow 8. 3.8. Error Handling 9. 3.9. Parent-Child Communication 10. 3.10. Passing Children to Components 11. 3.11. No Macros: The View Builder Syntax 6. 4. Reactivity 7. 1. 4.1. Working with Signals 2. 4.2. Responding to Changes with create_effect 3. 4.3. Interlude: Reactivity and Functions 8. 5. Testing 9. 6. Async 10. 1. 6.1. Loading Data with Resources 2. 6.2. Suspense 3. 6.3. Transition 4. 6.4. Actions 11. 7. Interlude: Projecting Children 12. 8. Global State Management 13. 9. Router 14. 1. 9.1. Defining <Routes/> 2. 9.2. Nested Routing 3. 9.3. Params and Queries 4. 9.4. <A/> 5. 9.5. <Form/> 15. 10. Interlude: Styling 16. 11. Metadata 17. 12. Client-Side Rendering: Wrapping Up 18. 13. Part 2: Server Side Rendering 19. 1. 13.1. cargo-leptos 2. 13.2. The Life of a Page Load 3. 13.3. Async Rendering and SSR “Modes” 4. 13.4. Hydration Bugs 20. 14. Working with the Server 21. 1. 14.1. Server Functions 2. 14.2. Extractors 3. 14.3. Responses and Redirects 22. 15. Progressive Enhancement and Graceful Degradation 23. 1. 15.1. <ActionForm/>s 24. 16. Deployment 25. 1. 16.1. Deploying CSR Apps 2. 16.2. Deploying SSR Apps 3. 16.3. Optimizing WASM Binary Size 26. 17. Guide: Islands 27. 18. Appendix: How Does the Reactive System Work? * Light * Rust * Coal * Navy * Ayu INTRODUCTION 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. 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, and the DOM and basic Web APIs. 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. You can find more detailed docs for each part of the API at Docs.rs. > The source code for the book is available here. PRs for typos or clarification > are always welcome.