useEffect react hook - React Interview Question

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ย. 2024
  • What is the use of useEffect hook ? why useEffect runs infinitely sometimes. How to use it properly? What is a dependency array?
    🤯 Crash Courses (Single Video)
    Git/Github Crash Course : bit.ly/3JSA5VT
    TypeScript Crash Course : bit.ly/372dZSh
    Angular Crash Course : bit.ly/3DoGJR1
    Vue JS Crash Course : bit.ly/3uDujRl
    Python Crash Course : bit.ly/3Dod7U2
    React Router Crash Course : bit.ly/36YfO2i
    🧑‍🏫 Full Course Playlists
    HTML : bit.ly/36IMq0h
    CSS : bit.ly/3LpRQw6
    JavaScript : bit.ly/3u049tf
    BootStrap : bit.ly/3NA9nDJ
    ES 6 : bit.ly/3DvYCh6
    DOM Playlist : bit.ly/35nMKB7
    ReactJS (Redux & Hooks) : bit.ly/3iMethN
    React with TypeScript : bit.ly/3fQjXtF
    React Hooks: bit.ly/3Vmh7wV
    Redux: bit.ly/3yAIIkl
    NodeJS/ExpressJS : bit.ly/35nN6Yt
    MongoDB / Mongoose : bit.ly/3qPj0EO
    💻 Projects Playlists
    MERN Stack Complete Ecommerce : bit.ly/3ymSs0E
    Web Design HTML+CSS - Home Page : bit.ly/35nZiIB
    Web Design BootStrap - E-Commerce Site : bit.ly/3iPhaz7
    React/Redux/Firebase - Todo-App : bit.ly/3DnekL8
    🕹 Mini Projects (Single Video)
    React - Tic Tac Toe (Redux / Hooks) : bit.ly/3uzLEuy
    React - Game of Flag Quiz (Hooks) : bit.ly/3LpTC0e
    React - Google Translate Clone (Hooks) : bit.ly/3Lo9xvZ
    React - Chat App using Firebase (Hooks) : bit.ly/3wLgymj
    Visit our site: coderdost.com
    🔴 Full Courses List : coderdost.com/...
    🔴 Full Projects List : coderdost.com/...
    💾 Source Codes at : github.com/cod...

ความคิดเห็น • 33

  • @coderdost
    @coderdost  ปีที่แล้ว +3

    React 2023 MasterClass : bit.ly/3I7MYN7
    NODE+ EXPRESS+ MONGO MasterClass (12 Hour) : th-cam.com/video/ChVE-JbtYbM/w-d-xo.html
    React Interviews : bit.ly/3QAjAln
    JavaScript Shorts:
    bit.ly/3XhHRQ1
    React Shorts :
    bit.ly/3VfIrMi

  • @MohitKumar-nf5jn
    @MohitKumar-nf5jn ปีที่แล้ว +6

    Your Javascript and ReactJS playlist is more informative and thank a lot for that and can you make video’s on css key topics

    • @coderdost
      @coderdost  ปีที่แล้ว +1

      Sure. After Javascript and react.
      You can comment some example of useful CSS properties

    • @MohitKumar-nf5jn
      @MohitKumar-nf5jn ปีที่แล้ว +1

      @@coderdost ok, i will do that

  • @EnglishWithSushma
    @EnglishWithSushma ปีที่แล้ว

    Keep making these kinds of useful and conceptual videos

  • @ANKITKUMAR-ih3yk
    @ANKITKUMAR-ih3yk ปีที่แล้ว

    Sir please make more video on others hooks.
    You videos are informative sir I'm getting a lot.

    • @coderdost
      @coderdost  ปีที่แล้ว

      Thanks. Sure I will make in coming weeks

    • @ANKITKUMAR-ih3yk
      @ANKITKUMAR-ih3yk ปีที่แล้ว

      @@coderdost Greatful sir.

  • @mudassarkhan2298
    @mudassarkhan2298 ปีที่แล้ว

    Please make video on side effects in detail

  • @Shauryacious
    @Shauryacious 4 หลายเดือนก่อน

    Good work

  • @gtech7932
    @gtech7932 ปีที่แล้ว +2

    also css masterclass in one video

  • @rakeshshah5783
    @rakeshshah5783 ปีที่แล้ว

    Wow.. Just too good

  • @gtech7932
    @gtech7932 ปีที่แล้ว

    please make html in one video

  • @durgeshsingh6380
    @durgeshsingh6380 3 หลายเดือนก่อน

    Good 👍

  • @gouravnainwaya5669
    @gouravnainwaya5669 ปีที่แล้ว +1

    Good job UseCallback usememo aur memo useref Parr bhi video ho jaye

  • @Sharmilananawarenanawre8871
    @Sharmilananawarenanawre8871 ปีที่แล้ว

    thanks very much

  • @ankushagarwal7378
    @ankushagarwal7378 ปีที่แล้ว

    use react query for fetching data from API

  • @ankeshthakur6735
    @ankeshthakur6735 ปีที่แล้ว

    Information nice

  • @siddharthsaurav3657
    @siddharthsaurav3657 10 หลายเดือนก่อน

    HI coderdost. which software you use to make these animations for tutorial vbideo?

  • @siddhartha-555
    @siddhartha-555 10 หลายเดือนก่อน

    I am quite confused about this. Let's say I want to print 'Hello, world' into the console, but it runs twice! I've read the documentation, and it appears to be due to React Strict Mode, which is not advisable to remove. How can I ensure that it prints only once while adhering to best practices?

    • @soumyadyutinandy5119
      @soumyadyutinandy5119 8 หลายเดือนก่อน

      Ah! I've also faced this couple of times, and the easiest fix is to use the React developer tools extension instead of the browser console or you can use 'unstable_batchedUpdates' from the react-dom package. The second method is not widely used though

    • @siddhartha-555
      @siddhartha-555 8 หลายเดือนก่อน +1

      ​@@soumyadyutinandy5119 I figured out and fixed that if we write optimized code, as well as its cleanup function, it will run as expected

  • @gouravnainwaya5669
    @gouravnainwaya5669 ปีที่แล้ว +1

    Toh infinite loop ko kaise roke

    • @coderdost
      @coderdost  ปีที่แล้ว

      Either by avoiding setting state in useEffect and set on some event OR by removing the dependency of state variable

  • @yogeshvanzara5553
    @yogeshvanzara5553 ปีที่แล้ว

    Mere sath yhi ho raha or pata hi nhi chal raha kya karu bar bar re-render ho raha 🥲

    • @coderdost
      @coderdost  ปีที่แล้ว +1

      it is a feature of React Strict Mode

  • @raju-nc9zt
    @raju-nc9zt หลายเดือนก่อน

    😂😂😂 bhai ise or aasaan bhasha me samjhao

  • @shiekhpalace2401
    @shiekhpalace2401 ปีที่แล้ว

    Are you from Pakistan

  • @tit162-tiwarianurag2
    @tit162-tiwarianurag2 ปีที่แล้ว +2

    I want more bro

    • @coderdost
      @coderdost  ปีที่แล้ว +1

      Working on more such shorts based on such comments

    • @tit162-tiwarianurag2
      @tit162-tiwarianurag2 ปีที่แล้ว +1

      @@coderdost can u Make an admin panel for different user's data one user's data must not be visible to other user using firebase+react+redux please🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

    • @coderdost
      @coderdost  ปีที่แล้ว +1

      @@tit162-tiwarianurag2 Right now lots of shorts pending. We will come to long videos after that.
      You can use firebase Rules to make such thing. Firebase rules prevent read and write of data from other users,and allow only read/write for logged in user.
      If this is a personal project, you can try such thing.
      If it is a company project. Admin panel for firebase are already ready made available, mostly people use those. Like JetAdmin. We tried making admin panel for firebase but it's a very long process, specially once data is more. Firebase is not good with sorting, pagination etc. It will become complex.