diff --git a/lessons/06-params/README.md b/lessons/06-params/README.md index d165bc7e..d3592292 100644 --- a/lessons/06-params/README.md +++ b/lessons/06-params/README.md @@ -15,7 +15,7 @@ These URLs would match a route path like this: The parts that start with `:` are URL parameters whose values will be parsed out and made available to route components on -`this.props.params[name]`. +`this.props.match.params[name]`. ## Adding a Route with Parameters @@ -32,7 +32,7 @@ export default React.createClass({ render() { return (
-

{this.props.params.repoName}

+

{this.props.match.params.repoName}

) } @@ -84,7 +84,7 @@ export default React.createClass({ Now go test your links out. Note that the parameter name in the route `path` becomes the property name in the component. Both `repoName` and -`userName` are available on `this.props.params` of your component. You +`userName` are available on `this.props.match.params` of your component. You should probably add some prop types to help others and yourself out later.