Is MDB Components compitible with React Hooks?


Topic: Is MDB Components compitible with React Hooks?

cokicoki asked a year 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.


Jakub Chmura staff premium answered a year 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 commented a year ago

Thank you Kuba.


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


Piotr Glejzer staff commented 2 months 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.


Please insert min. 20 characters.
Status

Answered

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