setTimeout callback called twice in React functional component?

后端 未结 0 496
情话喂你
情话喂你 2021-01-18 04:06

Consider the following code:

import React from "react";
import { setTimeout } from "timers";

function App() {
  console.log("render&         


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