📌  相关文章
📜  将数据从子组件传递到父组件 - Javascript 代码示例

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

代码示例3
function App() {
  return (
    
); } const GrandParent = () => { const [name, setName] = useState("i'm Grand Parent"); return ( <>
{name}
); }; const Parent = params => { return ( <> ); }; const Child = params => { return ( <> ); };