Join Slack
Powered by
so how do we use `functionalComponent` in react-ro...
# javascript
s
Sourabh Rawat
10/19/2020, 4:10 PM
so how do we use
functionalComponent
in react-router-dom. It is asking for
ReactElement
. How do you convert b/w them?
r
Rescribet
10/19/2020, 4:24 PM
I don't know about the wrapper parlance, but a React Element is an instance of a (functional/class) component
s
Sourabh Rawat
10/19/2020, 4:24 PM
I think I found it. i just did
child(FooBar)
b
Big Chungus
10/19/2020, 4:28 PM
Or you can use
this
2
Views
Open in Slack
Previous
Next