`Am using mantine forms to create a reusable form component in react . When i map the datas and make instances of this form component then only the last form is being triggered.
const form = useForm({
mode: "uncontrolled",
initialValues: { targetValue: "0", commentBox: "" },
validate: {
targetValue:isNotEmpty('Target value is required'),
commentBox:isNotEmpty('Comment is required'),
},
});
how do i provide uniqueness to each form i create using the instance of a same component.
I tried referring docs to find anything that gives uniques identification to forms but couldn’t find any.`
New contributor
DexteRicky is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.