I have the following problem:
I have a step component and inside this component I have another component called form that renders one of the step steps.
Well, in the step I can get the id passed with the code this.props.match.params.id
only in this step I have another component called form and in this form I lose the id reference passed to the step.
I know I could change the route so that I called the form directly and so I would have the id, but I need to render the setp and inside the form.
How do I pass the step id to the form?
My route looks like this:
<Route path="/stepAluno/(new|edit)/:id?" component={StepAluno} />