Challenge: React

Apply what you’ve learned about React with TypeScript to real problems.

Challenge: Why isn’t the console printing anything?

In this React challenge, your mission is to modify the given application to resolve an issue with the login button. Currently, when the button is pressed, it fails to print the message “Login button pressed.” on the console. Also, to make matters worse, we get a big warning screen when the application loads up.

Your task is to investigate the issue and error message, analyze the existing code, and make the necessary modifications to ensure that the button executes a console log statement correctly so we are sure that it is handling our click.

Get hands-on with 1400+ tech skills courses.