Building a Counter app

Things to cover in this section

  • Project Setup
  • Understanding folder structure
  • creating the very first class component
  • initialising different counter methods like increment, decrement & reset
  • calling those methods and Compeleting the counter app 🎉
  • named exports vs default exports
  • working of the same in the counter application
  • Finally, done with the section! ✌️

Project Setup

npm

git checkout bootcamp
npm install or npm i

yarn

git checkout bootcamp
yarn

You can find the code we did for this section in bootcamp-counter branch.

🌲 branch: git checkout bootcamp-counter

← Concept of Virtual DOM in ReactData fetching in React →