Stack Exchange
Stack Overflow
  • Questions
  • Tags
  • Users
  • About
Stack Overflow
    1. Public
    2. Questions
    3. Tags
    4. Users
    5. About

React does not recognize the `activeStyle` prop on a DOM element

Asked Jul 28 '22 at 18:44
Active Jul 30 '22 at 07:17
Viewed 1,115 times
-1

can any one solve this type of error:Warning: React does not recognize the activeStyle prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase activestyle instead. If you accidentally passed it from a parent component, remove it from the DOM element. at a at LinkWithRef (http://localhost:3000/static/js/bundle.js:41092:5) at NavLinkWithRef (http://localhost:3000/static/js/bundle.js:41138:21) at O (http://localhost:3000/static/js/bundle.js:47755:6) at div at O (http://localhost:3000/static/js/bundle.js:47755:6) at nav at O (http://localhost:3000/static/js/bundle.js:47755:6) at Navbar at Router (http://localhost:3000/static/js/bundle.js:42181:15) at BrowserRouter (http://localhost:3000/static/js/bundle.js:40990:5)

javascript reactjs react-router react-dom
edited Jul 30 '22 at 07:17
Drew Reese
  • 165,259
  • 14
  • 153
  • 181
asked Jul 28 '22 at 18:44
DIPAK MANDAL
  • 1
  • 1

1 Answers1

0

Use NavLink Instead of Link

Active style prop works only when using NavLink

answered Jul 28 '22 at 20:16
Ashok K
  • 46
  • 4