📜  仅在挂载时使用 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:06.054000             🧑  作者: Mango

代码示例1
import React, { useEffect } from 'react';

function App() {
  useEffect(() => {
    // Run! Like go get some data from an API.
  }, []);
}