4 ms·
I think the use of classes was just some sugar to help OO and Java people (like myself) into React components. They're not really classes in the useful sense,
by FeloniousHam 6y ago
I think the use of classes was just some sugar to help OO and Java people (like myself) into React components. They're not really classes in the useful sense, and I found my components littered with functions that returned blobs of JSX that felt too small to be factored into full "classes".
Smaller function components and then adding state with `useState` has simplified my code.