Selecting state object name dynamically in React JS

前端 未结 0 732
夕颜
夕颜 2020-11-21 10:58

Quick question, how do I change an object in a copy of state that is selected using e.target.name, and then set to e.target.value. Like if i want to change newState.age when

相关标签:
回答
  • 消灭零回复
提交回复
热议问题