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
I'm stuck while rendering fields for nested arrays:
The type definition is below, the containers array has another array within It called ports.
When a user clicks on add a container, a container is rendered with inputs for name and image, there is another button, within the container, when clicked should render an input for the port.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm stuck while rendering fields for nested arrays:
The type definition is below, the containers array has another array within It called ports.
When a user clicks on add a container, a container is rendered with inputs for name and image, there is another button, within the container, when clicked should render an input for the port.
I'm not able to render it.
I will also attach the UI
React code below:
When add container is clicked a container is rendered out.
I want to render out an input when 'Add port' is clicked.
Any help?
Beta Was this translation helpful? Give feedback.
All reactions