Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --RootPage path /
- --HomePage path /h
- -Gallery path /h/portfolio
- -Links path /h/links
- -About path /h/about
- const mainRouter=(
- <Wrapper>
- <Provider store={store} history={history}>
- <BrowserRouter>
- <div>
- <Route exact path="/" component={Home}/>
- <Route path="/h" component={HomePage}/>
- </div>
- </BrowserRouter>
- </Provider>
- </Wrapper>
- )
- <main>
- <Route path={`${this.props.match.path}/portfolio`}
- render={ ()=><Gallery {...this.props}/> } />
- <Route path={`${this.props.match.path}/about`} component={About}/>
- <Route path={`${this.props.match.path}/links`} component={FrontEndGuide}/>
- </main>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement