can we declare state outside the class code example
Example: can we declare state outside the class
State is can be declare only in class if u want to declare in functional component use method useState();
State is can be declare only in class if u want to declare in functional component use method useState();