Zmienianie rekwizytów w React

const UserCard = ({ name, role: occupation }) => {
  return (
    <div>
      <p>Name: {name}</p>
      <p>Occupation: {occupation}</p>
    </div>
  )
}

function App() {
  return (
    <div>
      <UserCard name="Adil" role="Frontend Developer" />
    </div>
  )
}

export default App
Outrageous Ostrich