Find a beginner recipe
Start with inspection, server data, DOM wiring, events, forms, and HTTP
Start here
Work through these recipes in order until you reach the problem you need to solve. Each one assumes only the earlier browser and HTML concepts.
| What you need | Recipe |
|---|---|
| Inspect a running page | Inspect the application |
| Find an element’s scope | Select elements through the scope |
| Include initial server data | Pass data from the server |
| Change element content or classes | Update the DOM |
| Replace an element | Replace DOM |
| Render server HTML in a region | Swap server HTML |
| React to state | Run effects |
| Handle browser and scope events | Handle events |
| Submit user input | Build forms |
| Call a JSON endpoint | Use REST services |
| Keep the page useful without JavaScript | Enhance progressively |
| Compare the server-driven approach | Understand the HTMX similarity |
Choose the next area
Continue with the forms, HTTP, DOM, navigation, security, or performance finder instead of reading the cookbook from top to bottom.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.