Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

route pass props to component

//This only applies for earler versions of React Router specifically v5

<Route
  path='/dashboard'
  render={(props) => (
    <Dashboard {...props} isAuthed={true} />
  )}
/>
Source by ui.dev #
 
PREVIOUS NEXT
Tagged: #route #pass #props #component
ADD COMMENT
Topic
Name
8+8 =