Reactjs – React state always back to initial value or it always create new instance of class
What Is wrong With My code cause form state always back to initial value or it always create new instance of "forms" class interface loginComponentProps {} const LoginComponent: FC<loginComponentProps> = () => { const [loggedIn, setloggedIn] = useState(false); const [form,…