Components with Hooks

web
mobile

Topic: Components with Hooks

TeddyS31 pro asked 3 months ago

Will there be any components that will use hooks instead of class-based components? I see the latest react version is 16.12 but some of the components are still using class-based components


Piotr Glejzer staff commented 3 months ago

We don't have plans to re-write components to hooks. Class-based components are still available with version 16.12+. React doesn't have plans (yet) to abandon a class-based component in the future. Class-based components probably will be available in normal use in the React v.17


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: React
  • MDB Version: 4.25.2
  • Device: Macbook Pro 13
  • Browser: Chrome
  • OS: Catalina
  • Provided sample code: No
  • Provided link: No