Closed SakhriHoussem closed 3 years ago
Did you find a solution? I'm facing the same problem
clone the current child component and pass setFieldValue as props
<Stepper activeStep={step} orientation="vertical">
<Step key={child.props.label} completed={step > i || completed}>
{React.cloneElement(currentChild, { setFieldValue: setFieldValue })}
</Step>
</Stepper>
or use useContext hook
in my case i need to change a lot after check a box so 👍🏻
how to use it and thnx