MCPcopy Index your code
hub / github.com/reactive-python/reactpy / app

Function app

src/js/app/src/index.ts:3–12  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

1import { mount, SimpleReactPyClient } from "@reactpy/client";
2
3export function app(element: HTMLElement) {
4 const client = new SimpleReactPyClient({
5 serverLocation: {
6 url: document.location.origin,
7 route: document.location.pathname,
8 query: document.location.search,
9 },
10 });
11 mount(element, client);
12}

Callers

nothing calls this directly

Calls 1

mountFunction · 0.90

Tested by

no test coverage detected