skip to Main Content

Reactjs – Why input value isn't changed when re-render is occured by object state update

I am studying React through React Offical Document. I have question about this challenge. (https://react.dev/learn/updating-objects-in-state#challenges https://codesandbox.io/s/rztj2r?file=/src/App.js&utm_medium=sandpack) Assume that the given code is executed as it is without modification, I understand why {player.score} is disappeared when re-render is occured by handleLastNameChange()…

VIEW QUESTION
Back To Top
Search