Czy możemy ogłosić stan poza klasą

State is can be declare only in class if u want to declare in functional component use method useState();
[email protected]