Skip to main content

<FieldScope />

Component to create a field scope: any useField(name) or useFieldArray(name) instances used inside of FieldScope will inherit this field's name as a parent.

See Field scoping for more information.

import { FieldScope } from "@mozartspa/mobx-form"

Props#

name#

name: string

The name of the field scope.


children#

children: ReactNode

Any React node.