Components
<ReactRuntimeProvider>
The <ReactRuntimeProvider>
component takes a Makeswift runtime and provides it to the <Page>
component for rendering snapshots.
Props
The children components to render.
Example
App Router
The following example shows the <ReactRuntimeProvider>
being used in a Client Component and imported into the Root Layout in the app router.
Pages Router
The following example uses a Custom App to add the <ReactRuntimeProvider>
.
src/pages/_app.tsx