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
- Host: GitHub
- URL: https://github.com/ravi181919/counter_by_react
- Owner: ravi181919
- Created: 2024-03-07T10:12:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-18T10:18:21.000Z (about 1 year ago)
- Last Synced: 2025-01-25T10:27:59.193Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.