The View Builder package provides React hooks for managing view schema state. These hooks enable components to access and modify the schema, validate it, and persist it to storage.
The SchemaProvider component provides the schema state context to its children:
Copy
import { SchemaProvider } from '@repo/view-builder/hooks/useSchemaState';function ViewBuilderApp() { return ( <SchemaProvider> {/* Components that need access to schema state */} </SchemaProvider> );}