Posts by Renato siqueira • 11 points
1 post
-
1
votes2
answers73
viewsA: Send custom property to Privateroute component in React
You can enter the roles directly on the Privateroute: return <Component {...props} roles={roles} /> I’ve made adaptations for the code to work here, so make the modifications that are…