Find an advanced browser recipe

Use effects, viewport events, streams, workers, WebAssembly, and specialized UI

React to browser and scope changes

ProblemRecipe
Run cleanup-aware reactionsUse effects
Handle browser and scope eventsHandle events
React to element visibilityObserve the viewport
Stream server updatesUse server-sent events
Send and receive live messagesUse WebSocket

Add specialized execution

ProblemRecipe
Move computation off the main threadUse a worker
Call measured native computationUse WebAssembly
Remove unused framework codeBuild a smaller runtime
Cancel a large uploadControl an upload
Call an API on another originConfigure cross-origin access

Build specialized interaction

ProblemRecipe
Append results near the viewportBuild infinite scrolling
Update before the server respondsUse optimistic updates
Load a modal from the serverOpen a server dialog
Render sanitized authored contentHandle rich text

Integrate another framework

ProblemRecipe
Choose an integration boundaryChoose a bridge
Publish transient cross-root messagesUse the event bus
Read reflected web-component stateObserve Fluent UI attributes
Share current reactive stateUse an application model