I have two doubts about routes, in the scope of my project, I would have to mount this according to the json that arrives, as it may 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 put together a sequence of steps.
In the second case, I would have to have a link on a button, which triggers a url and shows the obj (this link comes in the json above, with the name of the component) For example, in the screen of Intro, has a button, and when clicking, I have to be "redirected"
Would anyone know how to do this with react router?
Thank you