Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. --RootPage path /
  2. --HomePage path /h
  3. -Gallery path /h/portfolio
  4. -Links path /h/links
  5. -About path /h/about
  6.  
  7. const mainRouter=(
  8. <Wrapper>
  9. <Provider store={store} history={history}>
  10. <BrowserRouter>
  11. <div>
  12. <Route exact path="/" component={Home}/>
  13. <Route path="/h" component={HomePage}/>
  14. </div>
  15. </BrowserRouter>
  16. </Provider>
  17. </Wrapper>
  18. )
  19.  
  20. <main>
  21. <Route path={`${this.props.match.path}/portfolio`}
  22. render={ ()=><Gallery {...this.props}/> } />
  23. <Route path={`${this.props.match.path}/about`} component={About}/>
  24. <Route path={`${this.props.match.path}/links`} component={FrontEndGuide}/>
  25.  
  26. </main>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement