I encountered an issue while attempting to utilize NavLink in a react typescript project. The error message states: "Property 'activeStyle' does not exist on type 'IntrinsicAttributes & NavLinkProps & RefAttributes'."
import React from 'react'
import { NavLink } from 'react-router-dom'
export default function Nav () {
return (
<nav className='row space-between'>
<ul className='row nav'>
<li>
<NavLink
to='/'
activeStyle={{
textDecoration: 'none',
color: 'red'
}}
className='nav-link'>
Top
</NavLink>
</li>
<li>
<NavLink
to='/new'
className='nav-link'>
New
</NavLink>
</li>
</ul>
</nav>
)
}