Skip to content

Commit

Permalink
ensure props get passed
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorskii authored Dec 11, 2017
1 parent 2c848c1 commit 31d476a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/creating-and-modifying-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,10 @@ import { Route } from 'react-router-dom';

// Pass in route config, and the Content component you want rendered
export default (config, Content) => {
const GatsbyClientRoute = () => {
const GatsbyClientRoute = (props) => {
return (
<Route
{...props}
{...config}
component={Content}
/>
Expand Down

0 comments on commit 31d476a

Please sign in to comment.