Strong Password Generator in React | React JS Complete Tutorial in Tamil | Day - 14
HTML-код
- Опубликовано: 14 окт 2024
- Learn how to build a powerful password generator application using React. In this step-by-step tutorial, we'll cover how to use React hooks such as useState to manage state, and we'll integrate features like dynamically updating the password based on user preferences, including uppercase, lowercase, numbers, and symbols. Additionally, we'll implement the functionality to copy the generated password to the clipboard using the clipboard API. By the end of this tutorial, you'll have a fully functional password generator application that you can customize and enhance further for your own projects.
Our Udemy Course :
Complete JavaScript Tutorial in Tamil
udemy.com/course/javascript-in-tamil/
Join this channel to get access to perks:
/ @tutorjoes
Learn Computer Technology By Tamil
For Free source code and Free Project Please visit :
www.tutorjoes.com/
/ tutorjoes
/ tutorjoes
www.tutorjoes.in
/ tutorjoesstanley
Complete Playlist of Tutor Joes
www.youtube.co...
Learn 135 Courses in Tamil
/ learnallintamil
#tutorjoes #tamil #reactjs
We support you bro
Sir I am not downloading our course videos, directly watching in youtube only.
Springboot and microservices playlist kandipa pannunga
Sure soon
Curd operation video podunga sir
You are doing a very good job sir ....thank you sir❤
super explained
Thank u, sir when u again start mongo and node
keep going brother
Thank you sir ❤
Keep going brother
Sir next js course teach pannunga ❤ sir waiting
Sure soon
It's awesome sir super sir❤
sir thanks lot sir😍🥺🥺
Very nice sir ❤
Super sir waiting......
Redux Video Podunga ❤
Awesome sir🎉
Firebase course pannunka sir
Sure soon
Sema bro🔥
angular series start pannunga sir
Sure soon
@@tutorjoes tq sir
Please provide angular complete series please
Sure we do soon
please continue react till redux sir
Sure
How to do the password authentication
We will do soon in upcoming videos
❤
First time click copy button Error comes sir, (Uncaught (in promise) DOMException: Document is not focused.)
Show your code
import { useState } from 'react'
import {Container,Form,Col,Row,Stack,Button} from 'react-bootstrap'
export const PasswordGenerator = () => {
const [length,setLength]=useState(8);
const [password,setPassword]=useState('');
const [state,setState]=useState({
incUpper:true,
incLower:true,
incNum:true,
incSym:true
});
const handleChange=(e)=>{
setState((state)=>({
...state,
[e.target.name]:e.target.checked,
}))
}
const generatePassward=()=>{
let charset='';
if(state.incUpper)charset+='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if(state.incLower)charset+='abcdefghijklmnopqrstuvwxyz'
if(state.incNum)charset+='0123456789'
if(state.incSym)charset+='!@#$%^&*()-_=+'
let generatedPassward='';
for(let i=0;i{
console.log(password);
navigator.clipboard.writeText(password);
alert('Password Copied');
}
return (
strong Password Generator
password length
setLength(parseInt(e.target.value))} />
Include Uppercase
Include Lowercase
Include Numbers
Include Symbols
Generate password
Copy
)
}
@@tutorjoes
alert pupup la ok button la click pannama enter key press panna than error varuthu sir
Source code
we will upload soon in website held up in some projects