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
- Host: GitHub
- URL: https://github.com/mohitjaiswal28/react-counter
- Owner: mohitjaiswal28
- Created: 2023-10-03T13:32:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-22T04:54:07.000Z (about 1 year ago)
- Last Synced: 2025-02-02T08:29:35.615Z (4 months ago)
- Topics: react, reactjs, usestate, usestate-hook
- Language: JavaScript
- Homepage:
- Size: 529 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

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