Why add empty curly braces in createContext() to help handle API data

后端 未结 0 1800
一整个雨季
一整个雨季 2021-01-01 05:32

all!
So, say I have the following in my Context component:

export const AppContext = createContext({});

export const Provider = ({children}) => {

          


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