How can I replace the last value in a string through an onClick without mutating state variable

后端 未结 0 580
渐次进展
渐次进展 2020-12-09 00:05

Working in a react project, I want to remove the 6 from the string stored in state, and replace it with the value from an onClick on a button

const string = "123

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