1
I have two questions about routes, in the scope of my project, I would have to assemble it according to the json that arrives, because it can come with a different component tree.
I would have something like this:
workflow:{
name : intro,
component: {
path: /view,
component: intro
},
name : help,
component: {
path: /view,
component: help
},
},
Intro : { //component
link: '/help'
}
In this context I would have to assemble a sequence of steps.
In the second case, I would have to have a link on a button, which triggers a url and displays the obj ( this link comes in the json above, with the name of the component ) For example, on the Intro screen, there’s a button, and when I click, I have to be "redirected"
Would anyone know how to do this with router React?
Thank you