Topic: Error: Invalid hook call.

roshanpr pro asked 3 years ago


Am getting a Invalid hook call when trying to load a few components such as MDBNavbarNav, MDBNavItem, MDBBtn etc.,

Is there any specific update I need to do? Currently in my package.json, am using it as "mdbreact": "git+"

My react versions below:

"react": "^16.12.0", "react-dom": "^16.12.0",

Piotr Glejzer staff commented 3 years ago

Did you try to use the latest version of React? MDBReact 5.0.0+ is using React 17+.

Bobby Renecker free answered 3 years ago

I am getting this problem as well.

Krzysztof Wilk staff commented 3 years ago


I answered you here:

Keep coding!

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 5.0.1
  • Device: Laptop
  • Browser: Chrome
  • OS: Mac
  • Provided sample code: No
  • Provided link: Yes