Bisakah kita mendeklarasikan negara di luar kelas

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