Skip to content

Commit dbacbe0

Browse files
wchesttaion
authored andcommitted
Update basename example (#3267)
This commit simply adds a preceeding forward slash to the basename example. In my testing (using `v2.0.1`) this is necessary for the basename routing to be applied correctly.
1 parent 6562eab commit dbacbe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/Histories.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ import { useRouterHistory } from 'react-router'
154154
import { createHistory } from 'history'
155155

156156
const history = useRouterHistory(createHistory)({
157-
basename: 'base-path'
157+
basename: '/base-path'
158158
})
159159
```
160160

0 commit comments

Comments
 (0)