Coding task · JavaScript and React course · Module 1: React Basics
Practice: Functional components
Functional components are simple functions that take props and return JSX. Destructuring pulls the props out right in the parameter: function Component({ name, mission }).
Task
Create a SpaceCapsule that accepts { missionName, crew, destination }. Display: 'Mission: [missionName]', 'Crew: [crew] members', 'Destination: [destination]'. Use props destructuring.