I have problem with Navlink button's active class my code look like this:
<NavLink exact to="/"><Button>Page</Button></NavLink>
Somehow NavLink isActive isn't working. Only when I click on button it changes class to active, but it becomes not active again after I release the button.
Button styled-component:
import styled from 'styled-components';
const Button = styled.button`
width: 50%;
height:35px;
background: white;
color: #71C1A1;
padding: 0;
border:none;
&:active {
background: #71C1A1;
color: white;
}
`;
export default Button;
Maybe someone could help?