Skip to content

Commit

Permalink
Merge pull request #33 from happy-hours/notes
Browse files Browse the repository at this point in the history
installs react router and documents problem with link #32
  • Loading branch information
minaorangina committed Mar 5, 2016
2 parents 6d0b2d7 + 12652eb commit ea158fe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"material-ui": "^0.14.4",
"react": "^0.14.6",
"react-dom": "^0.14.6",
"react-router": "^2.0.0",
"react-tap-event-plugin": "^0.2.2",
"vision": "^4.0.1"
},
Expand Down
16 changes: 16 additions & 0 deletions problems-solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,19 @@ https://github.com/globetown/crushlines/blob/3e740a10478cddd8a0768094cf64635459e
### Solution
* There's a problem if your npm version is below 3
* Solution was posted as an [issue in material-ui repo](https://github.com/callemall/material-ui#3001)

## <a name="react-router-link"><a> Problem: **Unable to pass down a url to React `<Link>`**

```
Failed propType: Required prop 'to' was not specified in Link. CHeck the render method of Button
```

### Solution

React Router 2.0 allows you to pass an object to the `to` attribute on a `Link` tag. #32

```html
<Link to={{ pathname: this.props.url }}>
// your react components in
</Link>
```

0 comments on commit ea158fe

Please sign in to comment.