Skip to content

yagnikvadi2003/counter-application

Repository files navigation

React Redux Counter

This is a simple counter application built using React and Redux-toolkit with redux-saga. It allows you to increment, decrement, and reset a counter value. You can also increment or decrement the counter by a custom amount specified by the user.

Report bug · Pull requests

Table of Contents

Installation

To run this application locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/CreativeThinker2023/counter-application.git
  2. Navigate to the project directory:
     cd counter-application
  3. Install the dependencies:
    yarn install
  4. Start the development server:
    yarn run dev

Open your web browser and visit http://localhost:5173/ to access the application

Usage

The counter is displayed on the screen, and you can interact with it using the following buttons and input field:

  • "+" Button: Increments the counter value by 1.
  • "-" Button: Decrements the counter value by 1.
  • "+10" Button: Increments the counter value by 10.
  • "async Event +2" Button: Initiates an asynchronous event that increments the counter value by 2 after a short delay.
  • "Reset" Button: Resets the counter value to 0.
  • Increment Amount Input: Allows you to specify a custom increment or decrement amount for the counter.
  • "Increase Amount" Button: Increments the counter value by the specified custom amount.
  • "Decrease Amount" Button: Decrements the counter value by the specified custom amount.

Features

  • Increment and decrement the counter value by 1.
  • Increment the counter value by 10.
  • Asynchronous increment of the counter value by 2.
  • Reset the counter value to 0.
  • Customizable increment and decrement amounts.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the GitHub repository. If you'd like to contribute code, please follow these steps:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request explaining your changes.

License

This project is licensed under the MIT License.