Clone and return a new React element using element as starting point. The resulting element will have the original…