The only problem is that you shouldnt, React only keeps support for class based components as to don’t break every app made in the past years, but you should use function components from now on since all new react features are based on hooks and as the react docs state, 1. Function components are lighter, 2. Hooks fix some inherit problems with class components lifecycle functions, 3. With the exception of error boundary, you can do everything that you could with classes using hooks
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The only problem is that you shouldnt, React only keeps support for class based components as to don’t break every app made in the past years, but you should use function components from now on since all new react features are based on hooks and as the react docs state, 1. Function components are lighter, 2. Hooks fix some inherit problems with class components lifecycle functions, 3. With the exception of error boundary, you can do everything that you could with classes using hooks