<NavButton>
Component
<NavButton>
is a button for (client-side/normal) navigation with automatically toggling-on the active state at corresponding URL.
If you want to handle the active
property programatically, thus the <NavButton>
becomes useless. So it's better to use <Button>
directly.
Here the demo: