Skip to content

Commit 85da056

Browse files
authored
Merge pull request #3674 from stevenyap/patch-1
Add instruction on navigating back to previous page
2 parents 0625e76 + 1cfb2a6 commit 85da056

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/guides/NavigatingOutsideOfComponents.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ render(<Router history={browserHistory} routes={routes}/>, el)
1212
```jsx
1313
// somewhere like a redux/flux action file:
1414
import { browserHistory } from 'react-router'
15-
browserHistory.push('/some/path')
15+
browserHistory.push('/some/path') // go to /some/path page
16+
browserHistory.goBack() // go back to previous page
1617
```

0 commit comments

Comments
 (0)