Podemos declarar estado fora da classe

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