You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The biggest difference is that Class components have "state" and "lifecycle hooks". How to choose? Try to use functional components for presentational aspects of your project, and class components where some logic is required, or you need to use state.
Breaking news, functional components can now use state and hooks too... stay tuned for workshop update.
Let's build the toy app using class components, and add an input that uses local state.