Learning Outcomes of the Counter App
Conclusion of the Counter App
Learning Outcome
By completing this project, you have learned how to build a simple web application using React from the ground up. You have:
- Set up a React development environment (Node.js, Create React App).
- Created React components and used the useState hook to manage dynamic data.
- Handled user events with onClick and updated the UI in real time.
- Organized the project files (src and public folders) and understood the directory structure.
- Pushed code to GitHub and deployed the app live on Netlify.
These skills are fundamental for any React developer. The Counter App is a basic example, but the concepts carry over to larger projects (state management, props, component structure, etc.).
Live Link & Output Screenshot
- Live Site: https://online-live-counter-app.netlify.app/
- Output Screenshot: The app should look like this when running:

MCQs
- What hook do you use to add state in a React function component?
- A) useEffect
- B) useState
- C) useContext
- D) useRef
Answer: B) useState
- How do you create a new React project using the command line?
- A) npm create-app my-app
- B) npx create-react-app my-app
- C) yarn new react-app my-app
- D) react-create-app my-app
Answer: B) npx create-react-app my-app
- In React JSX, how do you attach a click handler to a button?
- A) <button onclick={handler}>
- B) <button onClick="handler()">
- C) <button onClick={handler}>
- D) <button onClick: handler>
Answer: C) <button onClick={handler}>
- Where does Create React App mount the root component by default?
- A) <div id="root"> in public/index.html
- B) <div id="app"> in src/index.html
- C) <body> element directly
- D) It creates its own HTML file
Answer: A) <div id="root"> in public/index.html
Resources
Want to master ReactJS and build your portfolio by creating web apps like this? Check out GUVI’s IIT-M Pravartak Certified ReactJS Self-Paced Course, where you can master the art of building interactive user interfaces and web applications.
Additionally, if you want to understand how React works in a Full Stack environment, consider enrolling in GUVI’s IIM-M Pravartak Certified Full Stack Development Course, where you’ll learn React, Node.js, MongoDB, and more with hands-on projects, expert mentorship, and placement support. Perfect for beginners and professionals looking to upskill.


