What you will learn during this tutorial:
- The first event that triggers on a website.
- Make your code react to user clicks on buttons.
- Create a counter that increases when the user clicks.
- Add event listeners.
- What is the event target?
How are the exercises organized?
Each exercise is a small React application containing the following files:
- index.js: represents the entry JavaScript file that will be executed by the computer.
- index.html: represents the entry website.
- style.css: your website styles, they have to be imported from the index.html.
- README.md: contains exercise instructions.
- test.js: you don't have to open this file, it contains the testing script for the exercise.
Note: The exercises have automatic grading, but it's very rigid and strict, my recommendation is to not take the tests too serious and use them only as a suggestion, or you may get frustrated.
Contributors
Thanks goes to these wonderful people (emoji key):
-
Alejandro Sanchez (alesanchezr), contribution: (coder) 💻, (idea) 🤔, (build-tests) ⚠️, (pull-request-review) 👀, (build-tutorial) ✅, (documentation) 📖
-
Paolo (plucodev), contribution: (bug reports) 🐛, (coder) 💻, (translation) 🌎
This project follows the all-contributors specification. Contributions of any kind are welcome!
This and many other exercises are built by students as part of the 4Geeks Academy Coding Bootcamp by Alejandro Sánchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.

