Skip to content

Repository files navigation

React Password Generator

This is a simple web app built using React that generates random passwords based on user preferences. It allows users to specify the length of the password and choose whether to include numbers and special characters.

Live Website

You can visit the live website here.

Installation

  1. Clone the repository: git clone https://github.com/alpharsh/passwordgenerator.git
  2. Navigate to the project directory: cd passwordgenerator
  3. Install the dependencies: npm install

Usage

  1. Start the development server: npm run dev
  2. Open your browser and visit http://localhost:5173
  3. Use the range slider to specify the length of the password.
  4. Check the "Numbers" checkbox to include numbers in the password.
  5. Check the "Characters" checkbox to include special characters in the password.
  6. The generated password will be displayed in the input field.
  7. Click the "Copy" button to copy the password to the clipboard.

Concepts Learned

  • React functional components
  • State management with useState
  • Side effects with useEffect
  • Refs with useRef
  • Callback functions with useCallback

About

A simple web app built using React that generates random passwords based on user preferences.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages