If anyone can help, thank you, I'm trying to make my routes dynamic, but I can not understand what happens! see below the code image!
Seealsotheimageoftheresultofthiscode!
You can notice that the return of the component name is done normally, but the component, in this case is not rendered, and I do not know what happens, I suspect that is the case of console.log (cpt) which is returned the function as being a string, not the result of it.
The most curious thing is that if I type, the name of the component is manually rendered!
I DO NOT KNOW THAT I COULD DO TO RENDERIZE THE COMPONENTS DYNAMICALLY, THE CODE IS CONFORMING THE REACT-ROUTER EXAMPLE, BUT IT DOES NOT RENDER! I believe somehow the cpt constant, when it enters into the Bifaoapp () Function, is its return reference, so I return a function in the form of a string, but I do not know how to solve this!