Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Password Generator (React)

A clean, modern, and fully functional Password Generator built using React and Vite.
This project focuses on React Hooks, clean UI design, and real-world frontend logic.

Perfect for:

  • Frontend internships
  • Junior React developer roles
  • Portfolio & LinkedIn showcase

🚀 Features

  • Generate secure random passwords
  • Adjustable password length
  • Option to include:
    • Numbers
    • Special characters
  • One-click copy to clipboard
  • Automatic password regeneration on option change
  • Professional dark UI with soft shadows

🛠️ Tech Stack

  • React
  • Vite
  • JavaScript (ES6+)
  • Tailwind CSS
  • React Hooks

⚙️ How the App Works

  • User selects password length using a range slider
  • User can enable or disable numbers and symbols
  • Whenever any option changes, a new password is generated automatically
  • Generated password can be copied instantly using the copy button

🧠 React Hooks Used (Simple Explanation)

🔹 useState

Used to manage dynamic values in the application.

In this project:

  • Password length
  • Allow numbers or not
  • Allow symbols or not
  • Generated password

Whenever state changes, the UI updates automatically.


🔹 useCallback

Used to memoize functions and avoid unnecessary re-creation.

In this project:

  • Password generation logic
  • Copy-to-clipboard functionality

This helps improve performance and follows best practices.


🔹 useEffect

Used to handle side effects.

In this project:

  • Automatically generates a new password whenever:
    • Length changes
    • Number option changes
    • Symbol option changes

Keeps the password always in sync with user preferences.


🔹 useRef

Used to directly access a DOM element without causing re-renders.

In this project:

  • References the password input field
  • Selects the password text when the copy button is clicked

This is the recommended React approach for DOM interaction.


📁 Project Structure

src/ ├── App.jsx ├── App.css └──main.jsx

Simple and easy-to-understand structure.


📸 UI Preview

Clean dark theme with subtle shadows, designed for a professional look and social sharing.


🎯 Why This Project?

This project demonstrates:

  • Strong understanding of React fundamentals
  • Proper usage of React Hooks
  • Clean and readable code
  • Professional UI sense

A solid project for showcasing frontend skills.


📬 Feedback

Suggestions and improvements are always welcome.
Learning and building never stops 🚀

About

Password Generator app built with React Hooks, Vite, and Tailwind CSS.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages