why component rendered twice in react.js 16.x

后端 未结 0 377
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 21:02

Here is my simple component that rerendered twice when open the page: import React, {useState} from \'react\'

export default function TestComponent() {
  console.         


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