React class versus functional components and dash

Hi @hhoeflin

These are great questions. There are no plans to remove classes from React- see: https://reactjs.org/docs/hooks-intro.html

We intend for Hooks to cover all existing use cases for classes, but we will keep supporting class components for the foreseeable future. At Facebook, we have tens of thousands of components written as classes, and we have absolutely no plans to rewrite them. Instead, we are starting to use Hooks in the new code side by side with classes.

See this post for more information on both using classes and functional components in Dash:

1 Like