Having a React project with some component written in Class style and some others written in Hooks styles make the newcomers confuse and harder to reuse common logic. Is there a way, for example:
- An alternative library like Preact, Inferno,... which compatible with React but only support hooks
- Or an ESLint feature that warning every time someone try to create a React class component
- ...
to prevent my developer from writing Class component, as I want all components in my React project to be functional component with hooks only.