/counter-app

A simple increment-decrement web page using concept of React and Tailwind for styling purpose.

Primary LanguageJavaScript

Counter App

A basic React application that allows users to increment, decrement, and reset a counter.

Features

  • Increment the counter by clicking the "+" button.
  • Decrement the counter by clicking the "-" button.
  • Reset the counter to zero by clicking the "reset" button.

How to Run

  1. Clone the repository.
  2. Navigate to the project directory.
  3. Install dependencies with npm install.
  4. Start the app with npm start.
  5. Open http://localhost:3000 in your browser to see the app.

Screenshot

image

Technologies Used

  • React: For building the user interface.
  • Tailwind CSS: For styling.

How It Works

  • The app maintains a count state using the useState hook.
  • Clicking the "+" button increases the count.
  • Clicking the "-" button decreases the count.
  • Clicking the "reset" button sets the count back to zero.