Click me

Write a simple component called App that displays a button with the text "Click me!" and logs a Clicked! message to the console when clicked.

We have already written some starting code for you.

image

Instructions

  • Return a single button element with the text Click me!
  • Log Clicked! to the console when the button is clicked.
  • Do not edit the data-testid attributes.

Hints

  • You can use the onClick event handler on the button to execute the console.log method.
Adding your container request
Getting your dedicated container
Connecting to your container
Setting up your editor
Finalizing your playground
TerminalEditorBrowser