에 대한 리디렉션되지 않으며, 공유기 페이지에서Reactstrap 또는 반작용 라우터 V4의 내 헤더 부분 주소 링크 변경
<NavItem>
<NavLink tag={Link} to="/template/editor">New Template</NavLink>
</NavItem>
내 홈페이지에있어 경우
<BrowserRouter>
<div className="container-fluid">
<Header />
<section className="page-content">
<Route exact path="/" component={HomePage} />
<Route exact path="/template/editor/:id?" component={Authenticate(EditorPage)} />
</section>
</div>
</BrowserRouter>
(/) 및 새 템플릿 링크 (/ template/editor)를 클릭하면 새 템플릿 페이지로 리디렉션됩니다. 그러나 (/ template/editor/3)을 켜고 새 템플릿 링크 (/ template/editor)를 클릭하면 주소 표시 줄이 업데이트되지만 페이지가 라우팅되지 않습니다. 나는 간단한 것을 놓치고 있다고 확신하지만, 나는 무엇을 알아낼 수 없다.
react-redux를 사용하고'connect'를 사용 하시겠습니까? – Tomasz
@ Tomasz 네, 왜요? – SILENT
아마 이것과 관련이 있습니다 : https://stackoverflow.com/questions/43895805/react-router-4-does-not-update-view-on-link-but-does-on-refresh – Tomasz