Components
<ReactRuntimeProvider>
The <ReactRuntimeProvider>
component takes a Makeswift runtime and provides it to the <Page>
component for rendering snapshots.
Props
When set to true
, the preview version of a page will be rendered. See
example below for usage.
The children components to render.
A valid locale string (ex. "en-US"
).
This is required if your site supports
more than one locale.
Example
The following example shows how the <ReactRuntimeProvider>
is used to implement the <MakeswiftProvider>
client component as outlined in step 9 of the App Router Installation guide. The <MakeswiftProvider>
is subsequently utilized in the App Router’s root layout.
Was this page helpful?