Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rishika105/counter-app

A simple increment-decrement web page using concept of React and Tailwind for styling purpose.
https://github.com/rishika105/counter-app

reactjs tailwind

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/user-attachments/assets/c1a4fa1a-5a44-4342-b783-083300922b28)

## 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.