作为 React 世界的初学者,我想深入了解使用时会发生{this.props.children}
什么以及使用相同的情况。它在下面的代码片段中有什么相关性?
render() {
if (this.props.appLoaded) {
return (
<div>
<Header
appName={this.props.appName}
currentUser={this.props.currentUser}
/>
{this.props.children}
</div>
);
}
}