Recoil Tutorial | Recoil For Beginners

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 83

  • @2slimj
    @2slimj 2 роки тому +2

    Wow. Your style of teaching made it extremely easy for me to understand recoil. This is by far the best tutorial for anyone trying to get started with recoil

    • @RedhwanNacef
      @RedhwanNacef  2 роки тому

      Thanks a lot! Appreciate the great feedback.

  • @SALMANKHAN-zz4gi
    @SALMANKHAN-zz4gi 4 роки тому +2

    redux is sweating now . amazing tutorial ! thanks

  • @RabeeRaad
    @RabeeRaad 4 роки тому +3

    Wow, a very useful tutorial. You made it so easy to learn the core concept behind Recoil in a very simple way... amazing.
    Thank you!

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      Thanks for the feedback. Happy it helped!

  • @shadmanmartinpiyal4057
    @shadmanmartinpiyal4057 3 роки тому +1

    awhhh man!!! switching to Recoil today from Redux... no words said!!!!

  • @gideonidowu8271
    @gideonidowu8271 4 роки тому +2

    Love the way you teach! First video and I already want to watch more of your videos. Subscribed!

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      Great to hear, thank you and Welcome!

  • @purvjeja
    @purvjeja 3 роки тому +1

    Just loved your presentation

  • @jamalimehli1406
    @jamalimehli1406 Рік тому +1

    Very simple and clear, thank you bro :)

  • @xxbudderbgxx637
    @xxbudderbgxx637 2 роки тому +1

    Really cool and fast tutorial!

  • @ivancortez_cr
    @ivancortez_cr Рік тому

    It's a useful tutorial, even though, the way you did is basically a global react state. This approach doesn't work for different pages, since you're using everything in the same page there's no need to use recoil actually. Try to apply the same setup in a scalable way, using different folders for atoms, the main page (index.js) and components. That's what I expected to find in the video! But, again, it work to understand that we need a wrapper for recoil, atoms and the basics.

  • @vampirekabir
    @vampirekabir 2 роки тому +1

    Your style of teaching❤❤❤❤❤

  • @MrRhysSir
    @MrRhysSir 2 роки тому +1

    Extremely helpful, thank you!

  • @user-ro5fo9sl5h
    @user-ro5fo9sl5h 2 роки тому

    your lecture gives me a lot of useful thing, thanks a lot and I'll be a Recoil Master

  • @gixxerblade
    @gixxerblade 4 роки тому +2

    Thanks. The Recoil docs tutorial is confusing. You broke it down well.

  • @inamulhassan4384
    @inamulhassan4384 4 роки тому +1

    That was sharp and clear bruh...

  • @mattblack7505
    @mattblack7505 4 роки тому +1

    This is a fantastic tutorial! You have a great style of teaching, thankyou for this, its very helpful

  • @shadmanmartinpiyal4057
    @shadmanmartinpiyal4057 3 роки тому +1

    Great Video and precise explanation.

    • @RedhwanNacef
      @RedhwanNacef  3 роки тому

      Thanks for the feedback, glad you enjoyed it 👍🏼

  • @HXMCPP
    @HXMCPP 2 роки тому +1

    only video that helped me . thanks man

  • @gwapster13
    @gwapster13 4 роки тому +1

    Very much like using Context, so the RecoilRoot acts much like Provider and the atoms are like segments of the context value, then both use Hooks to wire it up to the components. I dont know why some people call this replacement for Redux when it doesnt even provide “actions” that allow separating business logic from your React components.

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому +1

      Yea it does feel like a lot like Context, although It is a slightly different mindset I think. In context you would generally create a new provider for each piece of 'state', whereas in Recoil the Root is a one off, also the ability to create atoms in runtime is something different to consider too. I see what you mean, I wouldn't say this is a replacement of anything yet, but I imaging people compare it with Redux because both tools tackle the same problem (state management). Actions are just one way of updating state, you could replicate that with any state management tool.

    • @gwapster13
      @gwapster13 4 роки тому

      Redhwan Nacef based on Recoil usage examples floating around, it seems that there is a tendency to write business logic in components, which otherwise would have been in “actions” if Recoil offered something similar.

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      Yea, I see what you mean.

  • @muhammadiqbal4530
    @muhammadiqbal4530 4 роки тому +1

    Thanks, Very useful tutorial. Very well-explained core concepts.

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      You're welcome, glad you enjoyed it.

  • @LikeFunnyMovies
    @LikeFunnyMovies 4 роки тому +1

    Great tutorial, love the minimaltic style :)

  • @subbe
    @subbe 4 роки тому +1

    brilliant tutorial. explained the concept very well.

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      Thank you. Appreciate the great feedback.

  • @drorzp
    @drorzp 3 роки тому +1

    Loved it ! thanks

  • @subhadip98
    @subhadip98 4 роки тому +1

    The error which I reported earlier is fixed in recoild 0.0.13, it works now.

  • @harshilparmar9076
    @harshilparmar9076 4 роки тому +1

    Nice one bro

  • @properahmer
    @properahmer 3 роки тому

    Amazing... Keep it up bro..

  • @wise5674
    @wise5674 2 роки тому +1

    This is neat and really easy to use. What's the reason to use Redux instead?

    • @RedhwanNacef
      @RedhwanNacef  2 роки тому

      Yea I agree. I think at this it mostly down to personal preference, things like developer experience/api etc. There may be some differences in performance at a large scale that Recoil is supposed to be better suited for but for most projects that wont make a difference.

  • @marloureyes846
    @marloureyes846 4 роки тому +1

    Thank you nice tutorial!

  • @andreabreda9695
    @andreabreda9695 3 роки тому +1

    great tutorial!

  • @ibsukru
    @ibsukru 4 роки тому

    This looks good, but this is what I do with Context api in general, the only thing is better you wrapped the App with just one Context Provider which is Recoil root, it looks simpler and more functional. I am curious about the other benefits also.

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому +1

      Yea feels similar to context api, I guess the main difference is probably performance and the ability to create pieces of state at runtime with recoil. I have a video doing a comparison which may be useful to you: ua-cam.com/video/-nZIMVOtK1g/v-deo.html.

  • @engine_man
    @engine_man 4 роки тому +1

    nice one dude.

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому +1

      Thanks.

    • @engine_man
      @engine_man 4 роки тому +1

      @@RedhwanNacef you're welcome. I noticed smaller channels also get straight to the point when explaining because they're also coming from a place of "what can I do with this?". Bigger channels just go around in circles before getting to the meat.

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому +1

      Yea that’s a fair point. I will always try get to the point quickly.

  • @nurcahyaari
    @nurcahyaari 4 роки тому +2

    great video taught me to use recoil.
    btw Recoil looks like easy than Redux, it less boilerplate than redux

  • @ajinkabeer
    @ajinkabeer 4 роки тому +1

    Awesome tutorial, any idea of a stable release date?

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      Thanks. I have not seen any release date being confirmed yet. Worth keeping an eye out on the github repo.

  • @subhadip98
    @subhadip98 4 роки тому

    Hi Redhwan, this works as you had explained but I have a error stacktrace in console but app works as expected.
    Any idea how to fix this issue ?
    index.js:1 Warning: Cannot update a component (`he`) while rendering a different component (`Count`). To locate the bad setState() call inside `Count`, follow the stack trace as described in fb.me/setstate-in-render
    in Count (at App.js:42)
    in div (at App.js:40)
    in Body (at App.js:23)
    in div (at App.js:21)

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      I see you have found out that this is fixed in a later recoil release 👍🏼

  • @veeresh4441
    @veeresh4441 4 роки тому

    Awesome ❤️

  • @xon2013
    @xon2013 4 роки тому

    This looks very similar to unstated next

  • @rajandavis9294
    @rajandavis9294 3 роки тому

    Do the React functions all need to be in the same file?

    • @RedhwanNacef
      @RedhwanNacef  3 роки тому +1

      No they don’t, they came be exported from different files. I kept it like this to try keep the tutorial simple.

    • @rajandavis9294
      @rajandavis9294 3 роки тому +1

      @@RedhwanNacef Perfect, thanks!

  • @PS-dp8yg
    @PS-dp8yg 4 роки тому

    Once recoil is ready for production, do we really need redux?

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      I think Redux will be around for a long time regardless of Recoil, it is years ahead in terms of development, community and maturity as a solution. A lot of companies/teams are trained in Redux and would need a strong reason to move away from it. However in my opinion, if Recoil is able to provide all the functionality that Redux gives in the minimal approach it has, then it can definitely become a strong contender for top spot. I think it could be interesting to see how Redux may adapt in the future if that starts to happen.

    • @madebydor
      @madebydor 4 роки тому +1

      @@RedhwanNacef Nicely explained, thanks

    • @RedhwanNacef
      @RedhwanNacef  4 роки тому

      Thank you, anytime.

    • @PS-dp8yg
      @PS-dp8yg 4 роки тому +3

      @@RedhwanNacef Thank you for the reply! I'm just trying to figure out if we need both when Recoil is stable, but it seems like we might just need Recoil. I personally hate Redux for all the boiler plate crap we need to do on a daily basis.