ReactRuntime
constructor
The ReactRuntime
is the bridge between Makeswift and your app. It tells the Makeswift builder about the schema of your components and which breakpoints to use.
Options
breakpoints
Record<string, Breakpoint>
An optional object with custom breakpoints for the Makeswift builder.
Examples
Basic usage
src/makeswift/runtime.ts
Custom breakpoints
The following example instantiates a new ReactRuntime
with 4 custom breakpoints.
makeswift/runtime.ts
Was this page helpful?