I am currently using Auth0 within a React Application that takes advantage of React-Router. I have some of my pages using the Protected Routes option. I’m trying to get some of application code that includes state management into the same file that holds the ProtectedRoute component. The page I’m trying to send props to is being sent as a component prop to the ProtectedRoute component:
<ProtectedRoute exact path="/current" component={Current} />
I hope this is clear enough. I’m new to web development and this is my first post here. The code in question that I’m trying to move up can be found here. All the state management and various other functions would need to get passed into the Current page as well as one other page.