React.cloneElement와 this.props.children은 언제 사용해야 합니까? 저는 아직 React에 익숙하지 않습니다.인터넷의 많은 예에서 자녀 요소의 렌더링에 있어서의 이러한 변화를 볼 수 있어 혼란스럽다고 생각합니다.일반적으로는, 다음과 같이 표시됩니다. class Users extends React.Component { render() { return ( Users {this.props.children} ) } } 그런데 이런 예가 있습니다. {React.cloneElement(this.props.children, { key: this.props.location.pathname })} API는 이해했지만 언제 사용해야 하는지 문서에서는 정확히 알 수 없습니다. 그럼 다른 사람은 ..