React Hooks createContext: How to update UserContext when its an array?

前端 未结 0 465
猫巷女王i
猫巷女王i 2020-12-16 04:41

I have state in my UserContext component:

var initialState = {
  avatar: \'/static/uploads/profile-avatars/placeholder.jpg\',
  markers: []
};
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题