Consider I have an input field to enter a number of children. When the user enters 2, the data grid component containing child details should display 2 rows without clicking the "Add another" button. If the user enters 3, then 3 rows should be displayed.
Initially, when rendering, the form looks like this,
rendered form
when the user enters the count as 3 to the text field, then the data grid should display with 3 rows,
expected output