README
antd-navbutton
react-router
navigation button in antd
style.
Installation
yarn add antd-navbutton
Usage
import { NavButton } from "antd-navbutton";
const button = <NavButton to="/home" replace={false} />;
NavButton
component is fully compatible with antd
's Button. Usage consistent with Button
and Link
. When you click NavButton
, the button's onClick
event is fired first, then the navigation event is fired.
References:
react-router-dom Link component
License
MIT