how to take the this.state value outside of class component 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();