Click in order · JavaScript and React course · Module 15: Patterns and Architecture
Specialization Through Props
Arrange the code of the specialised LaunchButton component that renders SpaceButton with preset props:
Items to click
- <SpaceButton variant="danger" size="large" onClick={onClick}>
- ; }
- return
- LAUNCH
- function LaunchButton({ onClick }) {
- </SpaceButton>
You can check the correct answer by solving this task in the CodeWorlds game.