【发布时间】:2020-06-10 22:41:23
【问题描述】:
假设我在 React 中有以下内容:
const Component = () => {
const props = { one: 1, two: 2, three: 3 };
return <AnotherComponent {...props} one="1" />;
}
-
one被AnotherComponent接收时,props 有什么价值? - 通过道具与其他道具的顺序是否重要?
我有一个我认为是由此引起的错误,我找不到涵盖这种极端情况的资源。
【问题讨论】:
标签: reactjs