The State class provides a way of defining state properties for the classes that extend it, as well as watching these properties for value changes.
The Component class already extends from State by default, besides automatically rerendering when there is a change.
If your class doesn't need to render anything it's best to extend from State directly though. That way you'll have access to its features without also inheriting logic you won't need.