Reactjs – React "State Hook" got automatically reassigned without using setState() method
this is my first question in this forum. I hope I can describe my problem correctly. I have a state hook called persons: const [persons, setPersons] = useState([]) My goal is to re-render the "persons" array after making a PUT…