Difference between “function component” and “class component”

Photo by Nikola Johnny Mirkovic on Unsplash

Different usage of “State”.

State is used for values that are used for display
Values that are not used for display are stored as properties.