Coding task · JavaScript and React course · Module 1: React Basics

Practice: Creating your first component

React components are autonomous modules of a space station - each has its own function and can be combined into larger systems. A component is a function that returns JSX. Remember: the name starts with a capital letter!

Task

Create a StationModule component: a function that takes props and returns a <div> with the module name (props.name) and status (props.status). Example: 'Module: Engines | Status: Online'