Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Is MDB Components compitible with React Hooks?

cokicoki free asked 5 years ago


Hi,

I will like to ask if MDB Components can be used with React Hooks? Or compatible with React Hooks to replace the state of MDB Components with useState/ useEffect? Kindly please advised! Thank you.


Carole Barbier free answered 3 years ago


Hi @Jakub Chmura , ok a year ago but now, is an update including "hooks" now planned ? Thanks


Piotr Glejzer staff commented 3 years ago

We will not rewrite components in mdbreact 4 to hook's. Hooks ale alternative to class components and a both are correctly way to use in React.


Jakub Chmura staff answered 5 years ago


Hi @cokicoki,

I saw many times on the support forum that our customers send us a code example with hooks, and I think it's possible and safe to use it.

Best, Kuba


cokicoki free commented 5 years ago

Thank you Kuba.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.24.0
  • Device: desktop
  • Browser: Mozilla Firefox
  • OS: MS Windows 7
  • Provided sample code: No
  • Provided link: No