sir ap ne kha code ko rata na lgao jo b smjhata hn is ghr ja kr practice krna😀 sir abhi hm knsa tution ay hn jo ghr ja kr phr practice krni ha😃😄😀 by the way you are very nice teacher you make learning fun and exciting
Sir, I write localstorage syntex like this localstorage. setItem("user" , JSON. Stringify(result)); but its show value undifine in browser. Please explain to me, and solve my problem. Thanks...
local storage error solved guys. Actually, we were not sending response to user request which is why fetch method was unable to complete request. To fix this error, simply send a response in your api code like following: app.post('/register', async (req, resp)=>{ let user = new signupModel(req.body); let result = await user.save(); resp.send({ "message": "Registration successful", "userId": "1234" } ); },); you can see i have now send response back to user. It is necessary to send response back to client in order complete request response cycle. Enjoy!!
hello i face the issue toh store data in the localstoreage can you guide me the issue i facing is the when i delete the user in the localstorage in fill the form i can't access on oter pages and the after filling the form the data is Not store in the localstoreage
when i am creating private component then one error arise Failed to execute 'setItem' on 'Storage': 2 arguments required, but only 1 present. sir please tell me why
hello sir I am facing an issue with this private component everything is working but it does not restrict pages after deleting local storage I don't know what is the problem
Finally yeh protecttive routes or private routes ka video aa gaya.
this was one of the best explanation i have ever seen. Thank you very much for your hard work to contribute to the society. Truly appreciated. 💯💯❤❤
Awesome Tutorials for Beginner CS Student 👍👍
Thanks for making this series.
YOU ARE ONE OF THE BEST EXPLAINER
Keep up the good work bro.
apki sare video jo ache se smjh mai aye hai thanks sir thanku so much
Great explainations❤...... keep bringing latest videos for us sir.
Thank you so much!
Thank you thank you thank you thank you Thank you thank you thank you thank you so much
amazing explanation 💙
sir ap ne kha code ko rata na lgao jo b smjhata hn is ghr ja kr practice krna😀 sir abhi hm knsa tution ay hn jo ghr ja kr phr practice krni ha😃😄😀 by the way you are very nice teacher you make learning fun and exciting
thank you very much for this tutorial
15:10 why we used useEffect?
Sir,
I write localstorage syntex like this localstorage. setItem("user" , JSON. Stringify(result)); but its show value undifine in browser.
Please explain to me, and solve my problem.
Thanks...
storage mein s capital hoga
Sir plz make quickly videos on it 🙏🙏
Nice one good
amazing video sir
you are super awsome,.,
local storage error solved guys.
Actually, we were not sending response to user request which is why fetch method was unable to complete request. To fix this error, simply send a response in your api code like following:
app.post('/register', async (req, resp)=>{
let user = new signupModel(req.body);
let result = await user.save();
resp.send({
"message": "Registration successful",
"userId": "1234"
}
);
},);
you can see i have now send response back to user. It is necessary to send response back to client in order complete request response cycle.
Enjoy!!
hello i face the issue toh store data in the localstoreage can you guide me the issue i facing is the when i delete the user in the localstorage in fill the form i can't access on oter pages and the after filling the form the data is Not store in the localstoreage
you are to good sir
Solution of failed to fatch:
let data= new user(req.body);
let result= await data.save();
resp.send(result);
Rest code as it is.... ❤️👍
Please upload one video daily.
Thanks a lot :)
when i am creating private component then one error arise Failed to execute 'setItem' on 'Storage': 2 arguments required, but only 1 present. sir please tell me why
hello sir I am facing an issue with this private component everything is working but it does not restrict pages after deleting local storage I don't know what is the problem
same bro
Mujhe yaha Sign up wagera sb ho raha hai but LocalStorage mai object Blank Dikha raha hai to uske liye kya krna padega?
bhai yeh problem mujhe v ho rha h
solution pta chla toh bta do bhai
I had the issue, the problem was I was using result.json instead of result.json(), the second one turns the result into json format
@@aleemsiddiqui945 Thanks bro
@benzaminbikash.19 please help me it shows blank
How all links routing to singup page after conditions with auth explain please? Reply I'm getting confused
There is an issue that When we fill the signup form then route change to "/" but signup not disappear until we not refresh the page.
I am having same issue. So, did u get solution?
Same issue..any solution
@@assamjaved1444
import React ,{useEffect} from "react";
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import './signup.css';
const SignUp = () => {
const [name, setName] = useState(" ");
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const navigate = useNavigate();
const collectData = async () => {
console.warn(name, email, password);
const result = await fetch('localhost:5000/register', {
method: 'POST',
body: JSON.stringify({ name, email, password }),
headers: {
"Content-Type": 'application/json',
"Accept": 'application/json'
}
});
const result2 = await result.json()
console.warn(result2);
localStorage.setItem("User", JSON.stringify(result2));
navigate("/")
}
useEffect(() => {
const userInfo = localStorage.getItem('User')
if (userInfo){
navigate("/")
}
})
return (
Register
setName(N.target.value)} placeholder='Enter Name ' />
setEmail(N.target.value)} placeholder='Enter Email' />
setPassword(N.target.value)} placeholder='Enter Password' />
Sign Up
)
}
export default SignUp;
@@siddiquerana5699 Thanks for the quide line
@@siddiquerana5699 what is the difference between your script and video script ? i am also having this issue
what is the difference between useNavigate and Navigate ???
login kar ne ke baad product show nahi horahi he
my outlet navigate is not working
it shows blank in key and pairs someone please help me to solve data is not visible in local storage
Video ki quality baad me dekhne pr low ho jati h sir or na hi video quality update krna ka option ata h
wow
there is no session in node,js>?
with SPA we do not use session
Trying to built same project in Angular.
my screen iis blinking while i click on signup , why its so
same issue
what is the link of GITHUB
I am also not getting Github link. Have you got Github link now? If you got it please share here bhai.
Why didnt the author used the help of session, email, password is sensitive data. ?????
where is git link
if anyone got the error about failed to fetch then make sure that your backend is also working in the background at another port number...
Thanks bro ❤
sir signup validation ke ho jati toh acha hota
code?
pls share code files.....thanks
code ko ratne ke koshish mt kro 😂😂