cloneElement takes an existing React element and returns a new element based on it, optionally with different props or children.