React: why does every re-render seem to be executing the function component body twice

后端 未结 0 696
谎友^
谎友^ 2020-11-28 12:09

I have a component looking like this

export default function App() {
  let count = 0;
  const countRef = useRef(0);
  c         


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