Skip to content

Pages

Bootstrap a React client from the app file. Start with page_react(); reach for the others only when your app owns its own HTML document or you are assembling a page by hand.

page_react()
Create a React page from conventional assets — no HTML file required
page_react_html()
Serve a React index.html document (the ui.tsx pattern)
page_bare()
Bare HTML page with Shiny dependencies
page_react_dep()
HTML dependency for a downstream package's own JS/CSS bundle

Outputs

Publish JSON to useShinyOutputValue() hooks.

reactive_output()
Publish a reactive value to a shinyreact client (the ui.tsx pattern)

Messaging

Push messages to useShinyMessageHandler() hooks.

send_message()
Send a custom message to client React components

Testing

Record the wire payloads a browser test observes.

wire_tap()
Tap the websocket wire of a shinytest2 app

Package

shinyreact shinyreact-package
shinyreact: Shiny UI Infrastructure for Client-Side React Rendering