so how do we use `functionalComponent` in react-ro...
# javascript
s
so how do we use
functionalComponent
in react-router-dom. It is asking for
ReactElement
. How do you convert b/w them?
r
I don't know about the wrapper parlance, but a React Element is an instance of a (functional/class) component
s
I think I found it. i just did
child(FooBar)
b
Or you can use this