0
사용자가 링크를 클릭하면 사용자를 체크 아웃 페이지로 안내합니다.다른 페이지로 리디렉션 한 후 저장소 값 유지
selectSlot(slot){
window.location = `/checkout/${slot.target.value}`
}
필자의 접근 방식은 redux 저장소 값을 유지하지 않습니다. 어떻게 그 값을 유지할 수 있습니까?
여기 목적으로 react-router-dom
에서 내가 Link
을 사용하고있는 라우터 정의
<Provider store={store}>
<ConnectedRouter history={history}>
<Router>
<Switch>
<Route exact path="/" component={MainLayout} />
<Route exact path="/index.html" component={MainLayout} />
<Route path="/checkout" component={CheckoutLayout} />
<Route component={NotFound}/>
</Switch>
</Router>
</ConnectedRouter>
</Provider>
어떤 라우터를 사용하고 있습니까? –