How can getDerivedStateFromProps method can access state if the state is initialized from within the constructor(props)?

后端 未结 0 1799
囚心锁ツ
囚心锁ツ 2021-01-05 15:33

Hi all I am new to ES6 and React and I am stuck in component lifecycle- creation of react. My question is In my constructor I have initialized state..

   cons         


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