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 needRecipe
Inspect a running pageInspect the application
Find an element’s scopeSelect elements through the scope
Include initial server dataPass data from the server
Change element content or classesUpdate the DOM
Replace an elementReplace DOM
Render server HTML in a regionSwap server HTML
React to stateRun effects
Handle browser and scope eventsHandle events
Submit user inputBuild forms
Call a JSON endpointUse REST services
Keep the page useful without JavaScriptEnhance progressively
Compare the server-driven approachUnderstand 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.