You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A react component which creates a new or can be used with an existing [FormArray](FormArray.md) control.
5
+
6
+
## How it works
7
+
- It creates a new instance of [FormArray](FormArray.md) in absence of the `name` and `control` props.
8
+
- If a `name` prop is defined then it means that the control has to be added in an already existing parent control ( [FormGroup](FormGroup.md) / [FormArray](FormArray.md)) i.e the parent control must be present.
9
+
- If a control with the same name is already present in the parent control then it just returns the same otherwise it'll create a new instance of [FormArray](FormArray.md) class.
10
+
- You can define a parent control either by passing the `parent` prop or using the component as a child of the `FieldArray` or `FieldGroup` component.
11
+
- If a `control` prop is defined then it just returns the same.
12
+
13
+
14
+
## Props
15
+
```ts
16
+
strict: boolean;
17
+
```
18
+
Default value: `true`
19
+
20
+
If `true` then it'll only re-render the component only when any change happens in the form array control irrespective of the parent component(state and props) changes.
0 commit comments