React Query 3 - CRUD Library Application

Sdílet
Vložit
  • čas přidán 2. 01. 2021
  • 📘New Course: Build full-stack React Typescript applications tsreact.maksimivanov.com/s/ytd
    Code for this video: github.com/satansdeer/react-q...
    React Exercise #1: mailchi.mp
    Next Video - How to Test React Query Components: • How To Test React Quer...
    Discord: / discord

Komentáře • 109

  • @heavycloudrecords
    @heavycloudrecords Před 3 lety +36

    Definitely interested in a testing tutorial as well!

  • @albertoarriaga9611
    @albertoarriaga9611 Před 3 lety +4

    Awesome video Maksim, because of you im using react query and react hook form and they have been a huge productivity boost in my project. Thank you for your work, keep it up! Saludos desde Honduras.

  • @yamanktish2579
    @yamanktish2579 Před 3 lety +10

    Yes please we need a video for testing the components :D, and thank you for the great video

  • @bibblebabl
    @bibblebabl Před 3 lety +26

    +1 for swagger tutorial!

  • @bertcatsburg649
    @bertcatsburg649 Před 3 lety +1

    Followed several React-Query tutorials and also the docs. But this is the first one which makes me understand React-Query.
    Thanks for an excellent tutorial.

  • @am6utoi97
    @am6utoi97 Před 3 lety

    Thanks for the tutorial! Just subscribed to your React Exercises Newsletter as well!

  • @techjandro
    @techjandro Před 3 lety +1

    Just what I was looking for, you're the best as always :-)

  • @aelfar7533
    @aelfar7533 Před 3 lety +3

    BOOM! awesome tutorial mate! looking forward to the next one! BOOM!

  • @rjc4200
    @rjc4200 Před 2 lety +2

    Good one Maksim, like it. Crisp and to the point. One thing I want to mention though. For react-hook-form version >=7.x you have to use ref object like below
    Cheers !!

  • @softwareadministrato
    @softwareadministrato Před 3 lety

    Great video! Keep them coming

  • @fullstackspiderman
    @fullstackspiderman Před 2 lety

    Best CRUD tutorial on React-Query.. thank you Maksim Ivanov

  • @kaituo1803
    @kaituo1803 Před 3 lety +2

    Thank you for this great video! Was wondering if react query works good in next.js?

  • @sergeysamius1128
    @sergeysamius1128 Před 3 lety +1

    Огромное спасибо! Успехов во всём, ждем еще видео)

  • @jaikishanprajapat8900
    @jaikishanprajapat8900 Před 2 lety +1

    Really..amazing tutorial...thanks Maksim Sir!!

  • @nonamestranger1619
    @nonamestranger1619 Před 3 lety +1

    Thank you for this react-query video, exactly what I was looking for. Is it worth using openapi client generators for the frontend? And what would you recommend for React Native project?

  • @nanascho3
    @nanascho3 Před 3 lety +5

    Would definitely like to learn more about Swagger!

  • @damonwu9658
    @damonwu9658 Před 3 lety

    rebass is very handy an dquickly build some prototypes, thanks for sharing, mate, 👍

  • @senkasim
    @senkasim Před 2 lety

    Thanks for your effort 🚀👌

  • @ArulSelvanb
    @ArulSelvanb Před 2 lety

    great tutorial, thanks!

  • @gabrielroque6664
    @gabrielroque6664 Před 3 lety

    Thank you very much for this! I was having trouble to understand React Query documentation. I'm a newbie with React and Redux, so trying to create everything, again, with React Query was being a nightmare for me. I still wonder what's best for the front-end of a CRUD APP... I decided to use React Query because Redux was not growing nicely, some data were getting lost with time et cetera.

  • @peoplescuriosity
    @peoplescuriosity Před 3 lety

    Great tutorial.. thanks..

  • @cloudeater9571
    @cloudeater9571 Před 3 lety +1

    Swagger is commonly seen at my work, probably a good idea to do a video

  • @joshbarros1995
    @joshbarros1995 Před 2 lety

    Excellent video! Please make a testing video also

  • @JoelRojo
    @JoelRojo Před 3 lety +1

    Really great tutorial, thanks Maksim!
    Would it make sense to use react-query to handle authentication (API call to get JWT token, register users, etc.)? Or would that be overkill and we can just use Context API with basic fetching?

    • @Jdouille01
      @Jdouille01 Před rokem

      React query is great for sharing context across your app since it give u a context provider !
      if you want tu share state and if u carry about overfetching React query is the best !
      Even for a few query it will be less boilerplate code !

  • @greendsnow
    @greendsnow Před 2 lety

    This React Query looks revolutionary

  • @user-qk8tm1vs2k
    @user-qk8tm1vs2k Před 3 lety +3

    Максим, спасибо за супер контент! подписка не глядя. Есть ли в планах rails api + react ?

    • @satansdeer1
      @satansdeer1  Před 3 lety +2

      rails не собирался, думал про django сделать видос

  • @brodyagaPATY
    @brodyagaPATY Před 3 lety

    Лайк не глядя👍👍👍 спасибо за урок🔥

    • @satansdeer1
      @satansdeer1  Před 3 lety

      Ахах, ну уж посмотри пожалуйста 🤣 Я старался же

    • @brodyagaPATY
      @brodyagaPATY Před 3 lety

      Само собой!!! Спасибо за труды ваши🚀🚀🚀

  • @vittoriomorellini1939
    @vittoriomorellini1939 Před 2 lety

    I didn't know rebass for style.It's amazing! I use material ui

  • @parrot785
    @parrot785 Před 3 lety +1

    With new version 7 of react-hook-form you will have some errors in BookForm component. You have to register input in a different way.
    Anyway this tutorial is great!

  • @paulinha-19
    @paulinha-19 Před rokem

    Thank you! You salve me.

  • @vittoriomorellini1939
    @vittoriomorellini1939 Před 2 lety

    Very clear and good explanation. Caching about react query is because the query with a key is available in all pages? Or because after first query in the same page the result is cached and no more fetch is necessary? Or both? Excellent video

  • @Nilkamalsha75
    @Nilkamalsha75 Před 2 lety

    Definately would love to have react testing tutorial as well.

  • @kevingrondin974
    @kevingrondin974 Před 3 lety +4

    For authentication and saving states in a context, how could we replace the user context with react-query? Example a useEffect that retrieves the data in a component and redirects if user has the right roles or not.

    • @dosomecoding
      @dosomecoding Před 3 lety +2

      Maskim Ivanov Can you please make video on this question ->how could we replace the user context with react-query? for role-based authentication

    • @albertoarriaga9611
      @albertoarriaga9611 Před 3 lety

      @@dosomecoding You can use a custom context provider paired with useMutation upon login.

  • @jpedro50
    @jpedro50 Před 3 lety

    I love your videos !! but i have a question...
    Can i do multiple react Queries dependent on a previous use query .. ?
    in the documentation only appears multiple queries and dependent queries separated ... and i cannot find anything on it online :(

  • @alvinabhinav3580
    @alvinabhinav3580 Před 3 lety

    swagger tutorial!

  • @user-fs1ux7dy6r
    @user-fs1ux7dy6r Před 3 lety +7

    Очень классно, ты молодец. А будет что-то посложнее? Хорошо бы какое-нибудь приложение на 2-3 часа на Реакте с использованием CRUD. Такого очень мало в ютубе и народ, уверен, не остался бы равнодушным.

    • @satansdeer1
      @satansdeer1  Před 3 lety

      Мне очень сложно придумывать идеи для приложений если честно. Очень помогло бы если бы ты накидал, какие приложения хочешь увидеть

    • @user-fs1ux7dy6r
      @user-fs1ux7dy6r Před 3 lety +2

      @@satansdeer1 Макс, без проблем. 2 варианта. 1) Банальный, но востребованный, типа e-commerce , с использование React , Redux, Redux-form и Node js или Firebase. 2) Это точно отличит тебя от остальных разрабов. Создать проектик по теме востребованной нынче генеалогии. Суть проекта заключается в построении родословного древа на основе внесенных заранее персон. Т.е имеется возможность добавить персону, у нее указываются в форме биографические данные, типа дата рождения, пол, мать, отец (здесь выбор из уже занесенных в базу персон), какие то комментарии. В сайдбаре отображаются последние добавленные в базу лица. Их можно удалять, редактировать. Возможен поиск и сортировка по любому из имеющихся полей. И вишенка на торте и самое главное построение древа, т.е. при клике на любого из персонажей должна выстраиваться цепочка его предков(т.к у каждого из персонажей указывались мать и отец, а у этих матери и отца свои мать и отец, то по идее это все можно сделать). Уверяю, что подобный проект никто не делал, так что в плане оригинальности это будет очень круто. Стек такой же как и в варианте 1. Будет круто если сможешь сделать на MERNe такое. Я как начинающий разраб и увлеченный генеалог попробовал такое замутить для себя , но остановился в середине так как знаний не хватило доделать.Но было бы круто увидеть финальный результат.

    • @satansdeer1
      @satansdeer1  Před 3 lety +1

      @@user-fs1ux7dy6r круто спасибо, кстати чтобы древовидные схемы рисовать мне очень понравился joint js

    • @user-fs1ux7dy6r
      @user-fs1ux7dy6r Před 3 lety

      @@satansdeer1 Надеюсь
      захочешь попробовать реализовать :)

    • @jorgen5462
      @jorgen5462 Před 3 lety

      Сайт доставки пиццы с расчётом маршрута, CMS простенькое на Реакт, игра тетрис/шашки/"миллионер"...

  • @valcaro87
    @valcaro87 Před 2 lety

    thank you! working smoothly, however i encountered some changes based from the latest packages installed...
    1.) useHistory() is replaced by useNavigate()
    2.)
    throwing a path.split error
    for react-hook-form v7:
    3.) In react-router-dom v6, "Switch" is replaced by routes "Routes"
    import { Routes ,Route } from 'react-router-dom';

  • @dieman1707
    @dieman1707 Před 3 lety +5

    Would love to see a typescript version of this!

  • @Wakkyguy
    @Wakkyguy Před 3 lety

    Why does the react router Link causes full page refresh instead of the normal behaviour?

  • @moshyfawn
    @moshyfawn Před 3 lety +1

    Would be interesting to see ur approach to filtering / sorting table data using this react-query lib.

    • @crnk.
      @crnk. Před 3 lety

      Client-side sort and filter functions. Just use the data that comes from the API, transform it to your needs, and render the new transformed array instead. You can either use useState for that or a wrapper function that you use in the render function directly.

    • @EverAfterBreak2
      @EverAfterBreak2 Před 3 lety

      Get your data filtered from the backend and filter it even more in the frontend using array functions

  • @hamzaliaqat952
    @hamzaliaqat952 Před 3 lety +2

    Sir can you make a tutorial to implement react query in react native

  • @inweirder1144
    @inweirder1144 Před 3 lety

    We need the video about testing!

  • @prodglace
    @prodglace Před 3 lety

    +1 for testing tutorial

  • @rism8345
    @rism8345 Před 2 lety

    Изучил документацию для react-query прежде, чем наткнулся на это видео. Даже прочёл несколько статей от Таннера Линсли, но всё равно оставалось несколько вопросов, ответ на которые нашёл в этом видео. Спасибо большое за твой труд. Старый добрый пример из реальной жизни всегда отлично подходит для изучения. Keep it up ;)
    upd: только один момент, в твоих видео тема в эдиторе имеет слишком насыщенные цвета, слишком глаза режет. было бы здорово если бы ты использовал тему с меньшей сатурацией. Но это так, просто предложение :)

  • @abdullahanis5761
    @abdullahanis5761 Před 3 lety

    Do I really need to integrate redux also with react query or it's not necessary after React Query ?
    Please answer

  • @damonwu9658
    @damonwu9658 Před 3 lety

    Hi Maksim, whats the next topic? 😄 docker + CI/CD?

  • @mikemontgomery8313
    @mikemontgomery8313 Před rokem

    Great tutorial. Do you have a link to the code?

  • @nosirovbehzod
    @nosirovbehzod Před 2 lety

    Thanks

  • @RenM908
    @RenM908 Před 3 lety +1

    Want to know about the Swagger API as well!

  • @jakubkurdziel2407
    @jakubkurdziel2407 Před 3 lety +1

    11:40 YES please

  • @juttameerhamza
    @juttameerhamza Před 3 lety

    +1000 for swagger swagi

    • @satansdeer1
      @satansdeer1  Před 3 lety

      Sorry, Ameer, you can only do +1

    • @juttameerhamza
      @juttameerhamza Před 3 lety

      @@satansdeer1 Yeah I now but my senior ask me implement swagger in new project that way i was so excited to learn swagger :->

  • @abdelmonaemshahat412
    @abdelmonaemshahat412 Před 3 lety

    could you please make a tutorial about relationship mongoose like adding a user for books API here?

  • @pieter-venter
    @pieter-venter Před 3 lety +2

    You can remove _key and just use the comma. Try it out

  • @TheRonron1994
    @TheRonron1994 Před 2 lety

    How do I get the API part? It is in the repo yes but you should've included the setup part of the API "BEFORE" the fetching part of the tutorial.

    • @TheRonron1994
      @TheRonron1994 Před 2 lety

      I stopped watching the video when you started coding the fetching part from localhost 4000. You should've included a quick setup guide for the API part before started coding the client side.

  • @0thi123
    @0thi123 Před rokem

    Nice tutorial, I just feel less emphasis should be put on styling and layout and more of other functionalities and features of react-query

  • @artursradionovs9543
    @artursradionovs9543 Před 2 lety

    Максим можете плз помочь разобраться с Некст Джей Ес и Реакт Квери дайнамик дейта рендер

  • @javascriptduniya1201
    @javascriptduniya1201 Před 2 lety

    Swagger local url how to setup ?

  • @Pareshbpatel
    @Pareshbpatel Před rokem

    An excellent tutorial on implementing CRUD in React, with the help of 3rd party libraries. Thanks, Maxsim
    {2022-12-23}, {2023-01-06}

  • @davidattah1629
    @davidattah1629 Před 2 lety

    would def inetely love to learn how to write and doc API with swagger

  • @avoidloves
    @avoidloves Před 3 lety

    +2 for swagger tutorial!

    • @satansdeer1
      @satansdeer1  Před 3 lety +1

      wow, an animated avatar!

    • @avoidloves
      @avoidloves Před 3 lety

      @@satansdeer1 I just use a gif loading spinner!!

  • @rickganaxashenglee6473

    Swagger documentation tutorial +1

  • @mahendranath2504
    @mahendranath2504 Před 3 lety

    Thank you 👍🏼❤️🙏, I follow you on telegram as well, looking forward for swagger tutorial

    • @satansdeer1
      @satansdeer1  Před 3 lety

      wait a sec, i dont have telegram group, could you please share a link

    • @mahendranath2504
      @mahendranath2504 Před 3 lety

      @@satansdeer1 sorry it's discord

  • @SagarKumar-ef7uz
    @SagarKumar-ef7uz Před 3 lety

    did he make the testing tutorial?

  • @thecutedreamkostasp.4449

    Great tutorial! But i dont understand why u dont play with cache and instead u invalidating the queries! Also whats the point of using useQuery if we gonna see so many loading spiners! Ty anyways

  • @surajbhattacharya9448
    @surajbhattacharya9448 Před 3 lety

    yes add testing tutorial on this please

  • @mighty_osaker
    @mighty_osaker Před 2 lety

    Че так мало подписоты, топовый же контент

  • @AnshuOpinion
    @AnshuOpinion Před 3 lety +1

    kindy create time stamps for each kind of request

  • @seifallahba5192
    @seifallahba5192 Před 3 lety

    +1 for Swagger

  • @thahashahrod
    @thahashahrod Před 3 lety

    Video on Swagger Api please

  • @rmnkot
    @rmnkot Před 3 lety +1

    we need testing

  • @kapral18
    @kapral18 Před 3 lety

    На 2х - ахуенно. Респект.

  • @ViewtifulNAMinates
    @ViewtifulNAMinates Před 3 lety

    Test guide pliz =)

  • @robertarkins533
    @robertarkins533 Před 3 lety

    Tests please.

  • @haydencordeiro
    @haydencordeiro Před 3 lety +1

    Discord squad where you at

  • @GeneralDeD9963
    @GeneralDeD9963 Před 2 lety

    Круто вышло Спасибо. Вы могли бы взять это видео, убрать английский и добавить еще и русский...

  • @Deepakkumar431
    @Deepakkumar431 Před 3 lety +1

    The tutorial should have focused more on react-query instead of all these extra stylings and CSS libraries.

    • @TheRonron1994
      @TheRonron1994 Před 2 lety

      Definitely agree on this one. Too much time spent styling the app. Also, there was no setup guide for the API "BEFORE" coding the fetching of API in the client side.

  • @Jdouille01
    @Jdouille01 Před rokem

    CRUD library ? React Query is more like a state management with fetching utility library !!

  • @bibblebabl
    @bibblebabl Před 3 lety +2

    Also, in my opinion:
    1) Typescript looks most attractive in 2021. Writing in JS is bad manners
    2) using index files is worse for project organization than unnecessary duplication in the import path

    • @satansdeer1
      @satansdeer1  Před 3 lety +1

      1 - wow, that's a strong opinion, some people still prefer javascript (not me), and typescript could become a blocker for some viewers
      2 - how using index files is harmful? The point is not to avoid duplication in the import paths, but to prevent imports from the sibling folders
      thanks for the comment

    • @bibblebabl
      @bibblebabl Před 3 lety

      @@satansdeer1 it increases number of files in project x2 instead of duplicate characters in import. What is worse?

    • @satansdeer1
      @satansdeer1  Před 3 lety +5

      @@bibblebabl im not trying to save in amount of characters, im trying to make it more obvious if someone is using non-shared components directly from the sibling modules