SM
Size: a a a
SM
YZ
SM
YZ
SM
// somewhere/history.js
export const history = createBrowserHistory()
// somewhere/routes
import { history } from 'somewhere/history.js'
<Router history={history} />
// somewhere/actions
import { history } from 'somewhere/history.js'
const myAction = () => () => {
history.push(...)
}
SM
VK
YZ
// somewhere/history.js
export const history = createBrowserHistory()
// somewhere/routes
import { history } from 'somewhere/history.js'
<Router history={history} />
// somewhere/actions
import { history } from 'somewhere/history.js'
const myAction = () => () => {
history.push(...)
}
YZ
SM
SM
VK
АБ
YZ
YZ
N
SM
SM
VK
SM