Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 740 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 740 Bytes

React Password Generator

A fully featured Password Generator built using React. https://passwrd-generator-react.netlify.app/

Features

  • Automatic password generation on page load
  • Specify password length using input slider
  • Include/Exclude Numbers
  • Include/Exclude Special Characters
  • Copy password with a single click
  • On demand generation of unique passwords with generate button
  • Automatic password generation on change of parameter (length, inculde/exclude numbers/characters)

Hooks used

  • useState to store password, length, isNumberIncluded, isCharIncluded
  • useRef to highlight password input on Copy
  • useCallback to memoize the generatePassword() function
  • useEffect to generate password on page load