i am use react-router v4. And have this tabs (material-ui) in App component:
<Tabs
className="tabs"
value={this.state.currentTab}
onChange={(newValue) => this.tabChange(newValue)}
>
<Tab
value="1"
label="Params"
>
<div>
<Params paramsStart = {this.start} onSave = {this.onSave} info = { this.state.info }/>
</div>
</Tab>
<Tab
value="2"
label="Summary"
>
<div>
<Summary goodCheck = { this.state.checkGood } onGoodSelect={this.goodSelect} />
</div>
</Tab>
<Tab
value="3"
label="Note"
>
<Note results={ this.state.results} info = { this.state.info } currentId = { this.state.currentId }/>
</Tab>
</Tabs>
In router.js:
import React from 'react'
import { BrowserRouter, Route } from 'react-router-dom';
import App from '../App'
export const Routes = () => (
<BrowserRouter>
<Route name="App" path="/" component={App}/>
</BrowserRouter>
)
I am want for every tab make own Route. But when i add in tab this:
containerElement={ <Link to={{
pathname: '/note'
}}/> }
and turn on the link
i have 404 Not Found from nginx