父传子通过props传值,使用useState来控制state的状态值父组件Father.tsx里:子组件Child.tsx里:展示效果:子传父跟react的方式一样,像子组件传入 ...
確定! 回上一頁