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

https://github.com/ravi181919/counter_by_react

Counter app by using Reactjs, tailwindCss
https://github.com/ravi181919/counter_by_react

Last synced: 2 months ago
JSON representation

Counter app by using Reactjs, tailwindCss

Awesome Lists containing this project

README

        

# Counter Application

This is a simple counter application built using React. It allows you to increment, decrement, and restart the counter.

## Features

- Increment the counter by 1.
- Decrement the counter by 1, but only if the count is greater than 0.
- Restart the counter to 0.

## Technologies Used

- React
- useState hook for managing state
- Tailwind

## Installation

1. Clone the repository:
2. Navigate into the project directory:
3. Install dependencies:
4. Run the application:

## Usage

- Click on the "Add by 1" button to increase the count.
- Click on the "Dec by 1" button to decrease the count by 1, but ensure the count doesn't go below 0.
- Click on the "Restart" button to reset the count to 0.

## Contributing

Contributions are welcome! Please feel free to fork the repository and submit pull requests.