React array state keeps resetting on update in functional component

前端 未结 0 1291
心在旅途
心在旅途 2020-11-29 19:13

I\'ve created a React component with an array state state.colors that contains three hex values (initial state is [\'#aaaaaa\', \'#aaaaaa\', \'#aaaaaa\']<

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