Clear Dynamics interview question

What do you know about Functional and Class components.

Interview Answer

Anonymous

23 Jun 2022

You can achieve the same result with both styles of components,. Class was the original way to create components but there has been a shift to Functional in the last few years as it requires less code to write and to me makes more sense, you can achieve the same functionality as Class components by using Hooks.