you can do like this too const DigitalTime = () => { const [Time, setTime]=useState(new Date().toLocaleTimeString()) setInterval(() => { setTime(new Date().toLocaleTimeString()) }, 1000); return (
Sir crud operation banao jismay add products, update,delete ,edit ,search option, pagination sir is mini project ko banao react js per vo bhi local storage ko use KR k sabhi functionality use ho jayega ussay aur bhi concept clear hoga
Thapa sir, you are doing a great job as you bring some small game tasks in react which is pretty good but I have requested to you kindly make one video that how we deal with back end in react. I am very thankful of you.
Hi! Nice videos bro and you are doing an awesome work! Your some videos are showing multiple times in your play list. As this video is showing three time at video index 40, 41 and 42 in play list. Thanks!
Hii Bhaiya , you are absolutely fantastic Bhaiya apne apne react in one video mein "Tachyons" ke baare mein bataya tha but woh install ni horha Plz ek video "Tachyons" pe bana dijiye & Good bless you bhaiya
Your work is appreciable 💯💪💪👌👌👏👏👏👏 Great 😀 Thapa Bhai as u know everything Please make a coding app for Android like vs code Editor 🙏🙏 Because I don't have Computer or laptop 😭😭😭🙏🙏 Please tell your email i have a question.🙏🙏 Bhai ek video banao ki ham coding problem kaise solve kare hame ata sab hai par jab kuch project banata hu tu atak jata hu🙏 ek video banao
Thapa sir end mai jitna padae ho tumne uska ek document bana kar dedo agar kuch bhool gae toh jaldi se usko dekh kar shamj jaege warna pura video dekhna padta hai. Please
i am trying to do same with creating a separate component for Time and exporting cTime into App.jsx but for some reason its not working.. My Time.jsx is: import React, { useState } from 'react'; const Time = () => { let cTime = new Date().toLocaleTimeString(); const [nTime, upTime] = useState(cTime); let UpdTime = () => { cTime = new Date().toLocaleTimeString(); upTime(cTime); } setInterval(UpdTime,999); } export default Time; export { nTime }; and App.js is import React, { useState } from 'react'; import Time, {nTime} from "./Time" import './App.css'; const App = () => {
return (
Time: {nTime}
); } export default App; The error i am getting is : Failed to compile ./src/App.js Attempted import error: 'nTime' is not exported from './Time'. Anyone please help
can u explain how do i obtain source code .. if i pay rs 30 then would i get source code of a particular video or entire playlist! anyway 30 rupees are way less for amazing work you are doing. quality is fantastic , way better than udemy or any courses!
Bro please help me bro, Bro how to get the URL of JSON data Like the one uyou used for carona website ,I want to implement for other fields like news ,sports ,weather but I am unable to find please help me bro💞
Can you tell me how can I convert this setInterval function to fat arrow function. const interval = setInterval(function () { newTime = new Date().toLocaleTimeString(); setCtime(newTime); }, 1000); Please suggest me how can I do that?
use " var " instead of " let " before ' time= new Date().toLocaleTimeString(); ', because let has ' local scope(couldn't be accessed anywhere except where it is declared) ' so reference error will occur ...Otherwise It is Very Good.
Guys, hope u like the video.. if yes then LIKE n Share krna mat bhuliyega 🙏
Please make video on symfony framework
Sir u are great are u nepali sir
nice bro.. your way of teaching is really awesome.
Is that 'AM" or 'PM' comes by default with 'new Date().toLocaleTimeString()' or we have to put some condition to show that.
you can do like this too
const DigitalTime = () => {
const [Time, setTime]=useState(new Date().toLocaleTimeString())
setInterval(() => {
setTime(new Date().toLocaleTimeString())
}, 1000);
return (
{Time}
)
}
Amazing way of Teaching. Thankyou Thapa Teachnical👌👌👌
Sir crud operation banao jismay add products, update,delete ,edit ,search option, pagination sir is mini project ko banao react js per vo bhi local storage ko use KR k sabhi functionality use ho jayega ussay aur bhi concept clear hoga
Waiting for building a website with react...👏🏻✌🏻💯
Yes
Right boss
This is a great video...i will recomend all to watch and then u can know that really u can learn React and its so easy.
Superb..... Very Easy to Create.... Thanks For Ur Efforts Make It Easy
enjoying this tutorial..I am watching and keep practicing.. awesome way of teaching
the way you work hard, really appreciate it
Thapa sir, you are doing a great job as you bring some small game tasks in react which is pretty good but I have requested to you kindly make one video that how we deal with back end in react. I am very thankful of you.
darun hoyeche bro
from BD
@Thapa Technical I did this by myself.. :) and Then I watch your video and I got the same method as you did setInterval
@Developer 53 vai plz help karo
I am facing error using npm install react-digital-clock
Awesome bhai... You are doing really great. Keep it up brother, want to learn more from you
Your videos are really very helpful sir,thank Soo... Much👍
You are great person yar , maza agaya
More easier than react docs thank you sir ji.
Simply fantastic bhai.!!!!!Thanks
thank you so much bro you helped me, even though i cant understand you. thank you so much!
Your explanation is great 👌👌
every video is very interesting 🙏🙏
Thanks bro it's done very good ☺️
Awesome teaching skill.
Great. Bro kash ap 4 saal phly mil jaty😅😅😅
Aj do video n both are awesome bro
Excellent !! Thank you, Much appreciated
import React, { useState } from 'react';
const App = () => {
let time = new Date().toLocaleTimeString();
const [count, setCount] = useState(time);
const UpdateTime = () => {
time = new Date().toLocaleTimeString();
setCount(time);
};
setInterval(UpdateTime,1000)
return(
{count}
);
};
export default App;
Thapa bhai good
Thank you sir 👍👍
Hi!
Nice videos bro and you are doing an awesome work!
Your some videos are showing multiple times in your play list. As this video is showing three time at video index 40, 41 and 42 in play list.
Thanks!
At 2:48 , what shortcut did you use for the curly braces ??
Awesome, thank you so much
appreciated sir , thank you so much sir
Hii Bhaiya , you are absolutely fantastic
Bhaiya apne apne react in one video mein "Tachyons" ke baare mein bataya tha but woh install ni horha
Plz ek video "Tachyons" pe bana dijiye
& Good bless you bhaiya
Amazing Video Sir.
Thank You So Much....Love You...
Your work is appreciable 💯💪💪👌👌👏👏👏👏
Great 😀
Thapa Bhai as u know everything Please make a coding app for Android like vs code Editor 🙏🙏
Because I don't have Computer or laptop 😭😭😭🙏🙏
Please tell your email i have a question.🙏🙏
Bhai ek video banao ki ham coding problem kaise solve kare hame ata sab hai par jab kuch project banata hu tu atak jata hu🙏 ek video banao
Bro HackerRank par practise kar sakte ho , vha sei logic bna nh aa jayga.
Love U Thapa sir
Nice Video Bhai 👍
Great one 🙂
Thanks 😁
Bhai ap GAzab ho
Aap blogger website me Ek bar me Ek se adhik product ko add Karna kis video me bataya hai
Nice video 👍👍
#ItsMD
nice explanation
thanks for your contribution and efforts really appreciate your work.
Made it myself 😎😂❤️🔥
super video
Thank you for this
Is that 'AM" or 'PM' comes by default with 'new Date().toLocaleTimeString()' or we have to put some condition to show that.
it comes by default. No need to add 'AM' or 'PM'
@@meditationalmusic610 Sorry, but in my case while writing the same code, it wasn't there.
How are integrate payment gateway in e commerce website project
Completed #32
Enjoying, please start django
Great
Thanks sir :)
doubt: ye jsx file ke liye js file ko hi rename kiya hai ya new create kiya hai?
You can rename it :)
Thapa sir end mai jitna padae ho tumne uska ek document bana kar dedo agar kuch bhool gae toh jaldi se usko dekh kar shamj jaege warna pura video dekhna padta hai. Please
Sir,Plz make a playlist for e-commerce website with admin panel.
important!!!!!!
How can we use the Class component's setState callback function in the functional component?
Did you got answer to your question? Was it about Props? Welcome Stackoverflow
sir,how to create reporting like rdlc if data save in data base how to see data on report
Boom guys 😀😁😀
i am trying to do same with creating a separate component for Time and exporting cTime into App.jsx but for some reason its not working.. My Time.jsx is:
import React, { useState } from 'react';
const Time = () => {
let cTime = new Date().toLocaleTimeString();
const [nTime, upTime] = useState(cTime);
let UpdTime = () => {
cTime = new Date().toLocaleTimeString();
upTime(cTime);
}
setInterval(UpdTime,999);
}
export default Time;
export { nTime };
and App.js is
import React, { useState } from 'react';
import Time, {nTime} from "./Time"
import './App.css';
const App = () => {
return (
Time:
{nTime}
);
}
export default App;
The error i am getting is :
Failed to compile
./src/App.js
Attempted import error: 'nTime' is not exported from './Time'.
Anyone please help
Try to export the components from separate components file , currently you have exported both in the same file
Brother i am facing error using npm install react-digital-clock
we can do this project without hooks with help of functions then why we need hooks . i have this cunfusion .anyone Know ?
can u explain how do i obtain source code .. if i pay rs 30 then would i get source code of a particular video or entire playlist! anyway 30 rupees are way less for amazing work you are doing. quality is fantastic , way better than udemy or any courses!
why you do not try yourself ?
sir is par bhi kam kar raha ha
setInterval(UpdateTime);
Thapa sir wab security ke bare me kuch sikhaw plz
@Thapa Technical My button is not working
How to make countdown timer in react js...
Please make e commerce or College management system in phl
Bro please help me bro,
Bro how to get the URL of JSON data
Like the one uyou used for carona website ,I want to implement for other fields like news ,sports ,weather but I am unable to find please help me bro💞
bro mere channel ke playlist api ka use karke awesome corona website banaya hai
You can google it for free Jain apis and you will many free apis :)
osm
Sir Setinterval mein infinite timing karna hoga toh kaise karenge
Infinite time nahi kiya jaata mere bhai
Can you tell me how can I convert this setInterval function to fat arrow function.
const interval = setInterval(function () {
newTime = new Date().toLocaleTimeString();
setCtime(newTime);
}, 1000);
Please suggest me how can I do that?
setInterval(() => {
setCtime(new Date().toLocaleTimeString());
}, 1000);
🎖🎖
sir digital clock with date and time in node.js ka video chiya sir
👌
13th liker bro 😊
use " var " instead of " let " before ' time= new Date().toLocaleTimeString(); ', because let has ' local scope(couldn't be accessed anywhere except where it is declared) ' so reference error will occur ...Otherwise It is Very Good.
How to bring ur website on www
varable not working,
❣❣👌
Sir u r the bestt😭🤌🏻
India nepal relationship ke bare me aapka
thinking Kaisa hai
Promotion of other videos in the middle of a lecture is very annoying😫
Please 🙏 promote other videos in the end Or on the start
There are 2-3 videos copies of each video it increases the size of playlist so please delete repeated videos and make constant playlist
This code has very major Bug. Finder will get some phone pe prize.
Php me
Other Ways using pure javascript (without using Hooks )
const App = ()=>{
setInterval((time= new Date())=>{
document.getElementById('curTime').innerHTML=time.toLocaleTimeString()
},1000)
return(
time
)
}
Thank you sir 😊