setting a component inside useState behaves differently within a child component

前端 未结 0 1742
夕颜
夕颜 2021-02-07 09:47

I have a stateful component that I set another component as the state:

const [ displayComponent, setDisplayComponent ] = useState(null);


// some function and ch         


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