title: When I use value in input , I can't type a text in input
body: <p>When i want use <code>value={tempLogin.login}</code> i can't type in my input .
  What did i do wrong ? I don't see mistakes in event,object and state :( </p>
  
  <pre><code>var loginInfo = {
      login: "",
      password: ""
  };
  const [tempLogin, addTempLogin] = React.useState(loginInfo);
  const [logged, setLogged] = React.useState(0);
    const newLogin = event =&gt; {
      loginInfo.login = event.target.value;
      addTempLogin(loginInfo);
      console.log(tempLogin.login);
    };
  return ....
            &lt;TextField
              placeholder="Wpisz swoją nazwę użytkownika"
              type="text"
              id="name"
              onChange={newLogin}
            /&gt;
  .....
  </code></pre>