score:0

Accepted answer

you are not receive the props, change your declaration for this :

const mycomponent = (props) => ....
const mycomponent2 = (props) => ...

Related Query

More Query from same tag