Question: My react router works fine.. but I would like get the date from the `Path` as the `title` which expects a string. 

```
  <Route exact path="/meeting/:date"
              breadcrumb="Meetings"
              title={DATE}
              component={(props) => (
                <FooComponent
                  date={props.match.params.date} />
              )}
            />

```

thanks

Answer: 
In your initial component, set the path that loads your route. By adding /:date to the end of your route, that string can be accessed by calling props.match.params.date inside that routes component.

`<Route exact path="/meeting/:date" component={DateComponent} />`

In the component that the route renders, use `props.match.params.date` to access your string from path

```
Class DateComponent extends React.Component{
  render(){
    return(
      <h2>{this.props.match.params.date}</h2>
    )
  }
}

```

<https://reacttraining.com/react-router/web/api/match>
I use [Helmet](https://github.com/nfl/react-helmet) for that, it allows you to update the title, meta, scripts and basically anything related to the header.

Once you install it, just add the following code to `FooComponent` or to a common parent component.

```
<Helmet>
  <title>{props.match.params.date}</title>
</Helmet>

```