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

https://github.com/mohitjaiswal28/react-counter

The main purpose is to understand and apply the concepts of useState in ReactJS
https://github.com/mohitjaiswal28/react-counter

react reactjs usestate usestate-hook

Last synced: 2 months ago
JSON representation

The main purpose is to understand and apply the concepts of useState in ReactJS

Awesome Lists containing this project

README

        

# React Counter

This repository contains a simple React counter component. The counter allows users to increment and decrement a numerical value by clicking the "+" and "-" buttons. It demonstrates the use of React hooks for state management and custom button components for handling click events.

## Demo

![Demo Image - ](https://i.ibb.co/hLnJdzw/Screenshot-2024-05-22-091031.png)

## Deploy Link

[Deploy Link](https://664d7a21a4e4b3946819d528--jolly-kleicha-362a45.netlify.app/)

## Features

- Increment and decrement functionality
- State management using React's useState hook
- Modular button component

## Installation

1. Clone the repository:
```
https://github.com/mohitjaiswal28/React-Counter
```

2. Navigate to the project directory:
```
cd React-Counter
```

3. Install the dependencies:
```
npm install
```

4. Run the development server:
```
npm start
```

## Usage

Simply click the "+" button to increase the count and the "-" button to decrease the count.