Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react route props

        <Route
          path="/page"
          render={() => (
            <Page
            //pass the props through the route
              username={username}
              password={password}
              email={email}
            />
          )}
          exact={true}
        />
 
PREVIOUS NEXT
Tagged: #react #route #props
ADD COMMENT
Topic
Name
4+4 =