Skip to content

Commit 1cfb2a6

Browse files
authored
Merge goBack with previous example
1 parent d7a1524 commit 1cfb2a6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/guides/NavigatingOutsideOfComponents.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ render(<Router history={browserHistory} routes={routes}/>, el)
1212
```js
1313
// somewhere like a redux/flux action file:
1414
import { browserHistory } from 'react-router'
15-
browserHistory.push('/some/path')
16-
```
17-
18-
```js
19-
// Go back to previous page
20-
import { browserHistory } from 'react-router'
21-
browserHistory.goBack()
15+
browserHistory.push('/some/path') // go to /some/path page
16+
browserHistory.goBack() // go back to previous page
2217
```

0 commit comments

Comments
 (0)