Code Ryan
Code Ryan
  • 1 508
  • 1 064 935
How To Use Layouts Correctly In Next.js 15
Docs: nextjs.org/docs/app/building-your-application/routing/layouts-and-templates
มุมมอง: 229

วีดีโอ

Master React State By Solving This Problem
มุมมอง 1.3K9 ชั่วโมงที่ผ่านมา
Today, I discuss the problem of state not being reset when rendering the same component in the same position within the React tree. Read more about this here: react.dev/learn/preserving-and-resetting-state#resetting-state-at-the-same-position
How Pages Really Work In Next.js 15
มุมมอง 59619 ชั่วโมงที่ผ่านมา
Today, I give a brief overview of how pages work in Next.js 15 and a few important things to know regarding pages. Learn more from the Next.js docs here: nextjs.org/docs/app/building-your-application/routing/pages
The Wrong Way To Manage State In React.js
มุมมอง 589วันที่ผ่านมา
Today, I cover having a single source of truth in your React application's state. Docs: react.dev/learn/sharing-state-between-components#a-single-source-of-truth-for-each-state
A Next.js Fundamental You Need To Master
มุมมอง 28314 วันที่ผ่านมา
Learn how to define routes in Next.js 15. Docs: nextjs.org/docs/app/building-your-application/routing/defining-routes
This Is A Common Misconception In React.js
มุมมอง 93314 วันที่ผ่านมา
This Is A Common Misconception In React.js
This Is A Breaking Change For Next.js 15
มุมมอง 51321 วันที่ผ่านมา
This Is A Breaking Change For Next.js 15
A Fundamental React.js Concept - Lifting State
มุมมอง 74021 วันที่ผ่านมา
A Fundamental React.js Concept - Lifting State
This Is How To Structure State In React.js
มุมมอง 99528 วันที่ผ่านมา
This Is How To Structure State In React.js
A Developer Lesson Learned The Hard Way
มุมมอง 2.5Kหลายเดือนก่อน
A Developer Lesson Learned The Hard Way
Do You Need A Degree For Software Engineering?
มุมมอง 125หลายเดือนก่อน
Do You Need A Degree For Software Engineering?
The Modern Guide To Using State In React.js
มุมมอง 756หลายเดือนก่อน
The Modern Guide To Using State In React.js
I Really Didn't Understand This..
มุมมอง 2.5Kหลายเดือนก่อน
I Really Didn't Understand This..
This Is A New Helpful Feature In Next.js 15
มุมมอง 1.2Kหลายเดือนก่อน
This Is A New Helpful Feature In Next.js 15
This Is A Bad Idea In React.js
มุมมอง 495หลายเดือนก่อน
This Is A Bad Idea In React.js
3 Next.js 15 Project Organization Strategies
มุมมอง 1.3Kหลายเดือนก่อน
3 Next.js 15 Project Organization Strategies
Doing This Is A Bad Idea In Your React Apps
มุมมอง 735หลายเดือนก่อน
Doing This Is A Bad Idea In Your React Apps
NEW Next.js 15 Feature! Enhanced Forms
มุมมอง 2.7Kหลายเดือนก่อน
NEW Next.js 15 Feature! Enhanced Forms
Avoid This Next.js Anti-Pattern
มุมมอง 1K2 หลายเดือนก่อน
Avoid This Next.js Anti-Pattern
The Key To React.js State Updates
มุมมอง 2132 หลายเดือนก่อน
The Key To React.js State Updates
Master 3 Essential Next.js Concepts in 4 Minutes!
มุมมอง 5092 หลายเดือนก่อน
Master 3 Essential Next.js Concepts in 4 Minutes!
A Commonly Misunderstood React Concept
มุมมอง 7162 หลายเดือนก่อน
A Commonly Misunderstood React Concept
Many React Developers Don't Understand This
มุมมอง 2.1K2 หลายเดือนก่อน
Many React Developers Don't Understand This
This Can Be A Problem In Next.js
มุมมอง 2.1K2 หลายเดือนก่อน
This Can Be A Problem In Next.js
The Next.js Mistake That Breaks Your Data
มุมมอง 5802 หลายเดือนก่อน
The Next.js Mistake That Breaks Your Data
The Complete Guide To Mastering React State
มุมมอง 3462 หลายเดือนก่อน
The Complete Guide To Mastering React State
Master React: Essential Event Handling Techniques
มุมมอง 5093 หลายเดือนก่อน
Master React: Essential Event Handling Techniques
EASY UX Upgrade: Snap Scrolling with Next.js & Tailwind
มุมมอง 7683 หลายเดือนก่อน
EASY UX Upgrade: Snap Scrolling with Next.js & Tailwind
Avoid This Common React Mistake Newbies Make
มุมมอง 1.1K3 หลายเดือนก่อน
Avoid This Common React Mistake Newbies Make
The Surprising Key to Overcoming Coding Blocks
มุมมอง 1293 หลายเดือนก่อน
The Surprising Key to Overcoming Coding Blocks

ความคิดเห็น

  • @XilqaXilqa
    @XilqaXilqa วันที่ผ่านมา

    Unlucky your code is not working

  • @NAMAN444edit
    @NAMAN444edit 2 วันที่ผ่านมา

    bro i think you should make some changes in your content by showing your face came and energy in entry scene 😁😁. because your highest view video is in which you show your face .

  • @DanielEhigiator-f3m
    @DanielEhigiator-f3m 2 วันที่ผ่านมา

    This was fantastic. Thanks for the clarity

    • @coderyan
      @coderyan 2 วันที่ผ่านมา

      You’re welcome!

  • @DileepaRanawake
    @DileepaRanawake 2 วันที่ผ่านมา

    You're an excellent teacher Ryan - I've been a bit confused by all this and love how you've broken these concepts down and covered. Thank you

    • @coderyan
      @coderyan 2 วันที่ผ่านมา

      Happy it helps!

  • @DileepaRanawake
    @DileepaRanawake 2 วันที่ผ่านมา

    This was absolutely excellent - thanks so much 🙂

    • @coderyan
      @coderyan 2 วันที่ผ่านมา

      You’re welcome!

  • @qazyhn94
    @qazyhn94 3 วันที่ผ่านมา

    i think the reason of this: you should not do this in the fist place, its weird implementation you always expect counter to be there just with a different prop, so then render it once and change the prop instead of rendering it twice, then its obvious that prop change wont reset state (unless its implemented inside Counter component)

    • @theReal_WKD
      @theReal_WKD 3 วันที่ผ่านมา

      The main takeaway here is the use of the "key" prop which basically tells React to create 2 different references for the "same" component. But you're right about the implementation, it's not optimal. I would change isPlayerA state for "player/setPlayer" which could be "A" | "B". Then just render <Counter key={player} person={`Player ${player}`} />

    • @qazyhn94
      @qazyhn94 3 วันที่ผ่านมา

      @theReal_WKD exactly, but yes I was not aware of this behavior, good to know

  • @jf7sm53
    @jf7sm53 3 วันที่ผ่านมา

    react does not extend the fetch API. it's a mistake in the nextjs docs. everything custom that fetch does is injected by nextjs, react doesn't touch fetch at all

  • @doby3288
    @doby3288 3 วันที่ผ่านมา

    Nice explanation, but I was curious the whole time, about how is `Counter` component implemented.

    • @zshanahmad2669
      @zshanahmad2669 3 วันที่ผ่านมา

      probably somthing like this: fun Counter(){ const [count, setCount] = useState(0); return <button onClick={()=> setCount(c => c+1) } > {count} </button> }

    • @doby3288
      @doby3288 3 วันที่ผ่านมา

      @@zshanahmad2669 Yeah, something like that... I found the implementation in the provided link in the description, but thanks for the info!

  • @mdsajibshidker
    @mdsajibshidker 4 วันที่ผ่านมา

    Can you deploy this project for us?

  • @badrigaire8505
    @badrigaire8505 6 วันที่ผ่านมา

    nice explanation ✅

    • @coderyan
      @coderyan 6 วันที่ผ่านมา

      Thanks!

  • @gzboti
    @gzboti 8 วันที่ผ่านมา

    Thank you - really helpful & detailed guide!

    • @coderyan
      @coderyan 7 วันที่ผ่านมา

      Happy it helped!

  • @VipinBhati-h2j
    @VipinBhati-h2j 8 วันที่ผ่านมา

    bro literally wasted my time, thought i could improve but he is explaining prop drilling with misleading title

  • @declu0708
    @declu0708 8 วันที่ผ่านมา

    Well explained, but it would have been nice to see it in action

    • @coderyan
      @coderyan 8 วันที่ผ่านมา

      Thanks! I do cover examples is my full videos. But I can try to do more examples in shorts

  • @timbauer399
    @timbauer399 8 วันที่ผ่านมา

    Beautiful! I've used both controlled and uncontrolled components before, but didn't know the terminology (or even that there was terminology) for this. Great explanation! Love it. 🙂

    • @coderyan
      @coderyan 8 วันที่ผ่านมา

      Happy to hear it helped!

  • @muhammadijaz6042
    @muhammadijaz6042 8 วันที่ผ่านมา

    Nice creative concept. 👍 Please, elaborate more on use cases. Take care & stay healthy and more creative.

  • @amitanshusahu1079
    @amitanshusahu1079 8 วันที่ผ่านมา

    that is so obvious... 😐.. it's prop drilling.. kind of misleading title. anyways the video was good.. you are new in my feed

  • @smartway3883
    @smartway3883 10 วันที่ผ่านมา

    How to use gzip in solid-start

  • @igorr4682
    @igorr4682 12 วันที่ผ่านมา

    Now with react 19 out you can just use the use hook

  • @harishs37
    @harishs37 13 วันที่ผ่านมา

    This is a mind-blowing explanation-such a deep dive! 🤯🔍💡 Any beginner who understands the value of this and takes the time to follow along patiently will grasp it clearly. 🙌📚💯 This is a real gem 💎✨. Whoever gets to watch this video is lucky to have a mentor like you. 🙏👏🌟

  • @abdilaahimowliud7556
    @abdilaahimowliud7556 15 วันที่ผ่านมา

    Thank you so much. Very clean

    • @coderyan
      @coderyan 14 วันที่ผ่านมา

      Happy it helped!

  • @staravelli1207
    @staravelli1207 15 วันที่ผ่านมา

    what should you do instead? context manager?

  • @jeissonwee3736
    @jeissonwee3736 15 วันที่ผ่านมา

    Thank bro, good explain sir!

    • @coderyan
      @coderyan 15 วันที่ผ่านมา

      Thanks!

  • @luckys_4s445
    @luckys_4s445 16 วันที่ผ่านมา

    Thanks. I faced this issue multiple times but now I know the reason

    • @coderyan
      @coderyan 16 วันที่ผ่านมา

      Happy this helped

  • @vfryhn2
    @vfryhn2 16 วันที่ผ่านมา

    Thanks for this information, I recently came to a similar scenario in my application where I was rendering the same components for multiple tabs and even when the tabs were changed the content was still the same because react was mantaining the same state The way I solved it was adding a key field to the components to treat them as a different component every time the tab changed, I thought that the key field was only for arrays but it also works for single components, so technically if you add a different key on each div in your example at 6:40 you can make them render as two different components each one with their own state in case you need it

  • @ankitpatel5718
    @ankitpatel5718 16 วันที่ผ่านมา

    Thank you so much for this useful Info. Subcribing your channel to see more future videos like these useful videos.

    • @coderyan
      @coderyan 16 วันที่ผ่านมา

      You’re welcome. Thank you for subscribing

  • @wake-digital
    @wake-digital 17 วันที่ผ่านมา

    So I assume that in the compiled JS, there is an object with a structure sort of like `{ "react-tree-path": {state1:"value1" } }` or something like that in the global context / in parent context to all the react code And the state function used in the component takes it's own react tree path and uses it to access the object with the states stored for that path and then uses some generated ID assigned in "useState" to access the value of the given state? Am I getting the right idea? Then I would assume there's also some """garbage collector""" which removes a state from the big state object for each react-tree-path which ceased to exist after any react component call.

  • @aravind_d
    @aravind_d 17 วันที่ผ่านมา

    Thanks for this info. I never thought of this scenario!

    • @coderyan
      @coderyan 16 วันที่ผ่านมา

      You’re welcome!

  • @md.shaikulislamnabin2699
    @md.shaikulislamnabin2699 17 วันที่ผ่านมา

    Thanks a lot

    • @coderyan
      @coderyan 16 วันที่ผ่านมา

      You’re welcome!

  • @MentorAliu-in2in
    @MentorAliu-in2in 18 วันที่ผ่านมา

    every nextjs release tries to fix old bugs, by introducing new breaking changes

  • @judoScott
    @judoScott 19 วันที่ผ่านมา

    This was so helpful. I've really been struggling handlers! Thank you so much. Looking forward to more videos!

    • @coderyan
      @coderyan 19 วันที่ผ่านมา

      Happy it helped!

  • @web-developer-oziy
    @web-developer-oziy 19 วันที่ผ่านมา

    What is your vs code theme ?

    • @coderyan
      @coderyan 19 วันที่ผ่านมา

      Winter is coming

  • @mattrethman8200
    @mattrethman8200 23 วันที่ผ่านมา

    “State” is a funny word that beginners will not understand. I myself struggled with this term. Imagine a cup. Does that cup have water in it? If you can answer that question, your cup is either always full, always empty, or has state. The state being true there is water, or false there is not water. So when someone says their stuff is “stateless” it means will always be the same. When someone mentions state, you can assume it’s dynamic, or that it can change overtime. It has a life cycle. In this case, the counter holds a number. That is the state.

  • @omarhabash8355
    @omarhabash8355 23 วันที่ผ่านมา

    counsel vs console ??

  • @quentinjames981
    @quentinjames981 23 วันที่ผ่านมา

    Quality content, thanks a lot!

    • @coderyan
      @coderyan 23 วันที่ผ่านมา

      You’re welcome!

  • @jacobkoberstein9793
    @jacobkoberstein9793 24 วันที่ผ่านมา

    thx

    • @coderyan
      @coderyan 24 วันที่ผ่านมา

      You’re welcome

  • @thedeveloloper
    @thedeveloloper 24 วันที่ผ่านมา

    Thank you for the great video! I am curious as to why you would put your password in code instead of a .env file. I know it's just a test application, but if you never do it at all, you'll never do it in production by mistake.

    • @coderyan
      @coderyan 24 วันที่ผ่านมา

      Thanks! And fair point! Should have just put it in an env file

  • @settingsun1
    @settingsun1 24 วันที่ผ่านมา

    oh man, I had this problem and I sent the references of all functions with forward ref and if the child id matched the ref id it opened else it closed, learnt this later on and made my code cleaner.

  • @JeromeMcCree
    @JeromeMcCree 24 วันที่ผ่านมา

    Heard your hiring, can i apply?

  • @avijitpal1421
    @avijitpal1421 25 วันที่ผ่านมา

    What is use case of it?

  • @yamix-tr
    @yamix-tr 25 วันที่ผ่านมา

    I awlays used framer & webflow, lately the UX is lacking & cost of bandwidths are so much higher ... Astro integration with Notion got me into coding the best solutions for my clients on cloudflare pages since it is so easy to work with, incredibly fast, UX enhanced & cost effective than anything else ❤

  • @davidallred991
    @davidallred991 25 วันที่ผ่านมา

    Thanks, I like these concept videos because I am a solo-dev that builds out projects for small to midsize companies and learned everything from combination of youtube videos, tutorials, chatGPT etc. and so often I will learn how to do things on the fly when they come up, but I won't necessarily even know it is a concept or something that is named. A perfect example is that I have a site that is live for a client where I did this exact type of thing. I have some cards in a featured section on the homepage and used framer motion to rotate them in 3D on the Y axis. If the user selects a different card it will rotate simultaneously while the other that was rotated will rotate back. I wouldn't have know this is referred to as "Lifting State" even though I have done it with many components already. It is good to know these things because if I would have been asked by someone if I understood "lifting state" in react I would not have been able to answer even though I understand the concept completely.

  • @sssrikanthhh
    @sssrikanthhh 25 วันที่ผ่านมา

    Thanks bro❤️

    • @coderyan
      @coderyan 25 วันที่ผ่านมา

      You’re welcome

  • @OS-Advertising
    @OS-Advertising 25 วันที่ผ่านมา

    its cool before you had to grab the value of the form and navigate on your own with router but now its easier

  • @curioustoy
    @curioustoy 26 วันที่ผ่านมา

    I usually have route components and lib folders, then under app have shared components and lib folders (components and util functions used across the different routes)

  • @JustaGuy-cool
    @JustaGuy-cool 27 วันที่ผ่านมา

    Does not look clean, just use plain old css, it is not that hard.

  • @yushankkashyap7771
    @yushankkashyap7771 27 วันที่ผ่านมา

    Man you are a saver. I have wasted so much time on this and you explained it so well. I was stuck due to middleware being in the app folder. Thank you!😄

  • @a7med7x7
    @a7med7x7 27 วันที่ผ่านมา

    Lovely short, thanks

  • @Gokhan-er8qv
    @Gokhan-er8qv 28 วันที่ผ่านมา

    6:30 this will throws error {'apple', id: 1}

  • @jonasz8970
    @jonasz8970 28 วันที่ผ่านมา

    Ty ❤

  • @SoulofArtificialIntelligence
    @SoulofArtificialIntelligence 29 วันที่ผ่านมา

    Clean explanation