React state is empty inside callback

后端 未结 0 1839
你的背包
你的背包 2021-01-07 01:11

I got a React functional component with a callback which is passed on as props to another component:

const MyComponent = (props) =>
{          
    const [         


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