我想知道如何讓我的LinkContainer/NavItem鏈接到外部URL。我想:帶有完整URL的LinkContainer - React-Bootstrap-Router
<LinkContainer to="https://www.example.com">
<NavItem eventKey={1}>LinkedIn</NavItem>
</LinkContainer>
在這種情況下,我得到的錯誤:
A path must be pathname + search + hash only, not a full URL
我也試過:
<NavItem eventKey={1} href="https://www.example.com"></NavItem>
以上的產量沒有錯誤,但沒有按什麼都不做。