Making Food Ordering App - MobX vs Redux Comparison

Sdílet
Vložit
  • čas přidán 7. 07. 2020
  • 📘New Course: Build full-stack React Typescript applications tsreact.maksimivanov.com/s/ytd
    We'll make a fast-food ordering form using React and then rewrite it using Mobx and Redux. Let's compare both libraries.
    Discord: / discord
    Free React Testing Checklist: eepurl.com/c_8tzP
    MobX Code: github.com/satansdeer/react-r...
    Redux Code: github.com/satansdeer/react-r...

Komentáře • 26

  • @WillianJustenCursos
    @WillianJustenCursos Před 4 lety +8

    What a coincidence man, I was looking a video to a friend of mine about MobX and just found your video!
    And man, what an amazing video! So professional! Keep rocking man!
    I hope you're well in Sweden ^^

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

      Wow man, thanks! Yeah, I'm very happy here :-)

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

      Nunca imaginei te encontrar aqui... Gosto bastante do conteúdo que você compartilha com a comunidade, obrigado!

  • @user-ub7xo3qz2b
    @user-ub7xo3qz2b Před 4 lety +5

    Great video as always, Maksim. I really like that you use semantic markup, too. A lot of dev youtubers fail to do this.

  • @ericzorn3735
    @ericzorn3735 Před 4 lety +2

    Great tutorials as always. I personally have only used redux toolkit on my smaller side projects and use the original redux and thunk configuration at work. Just a heads up, you can use the createAsyncThunk function from toolkit. You then can perform any logic in the callback. If the callback’s return promise rejects, this can be caught by redux. You can then dynamically set extra reducers in your slice by using the fullfilled, rejected, and fetching (might be wrong on this property) keys in your reducer. Each one will automatically get called when the thunk is dispatched

  • @inversebrah
    @inversebrah Před 2 lety

    great video 👍

  • @vitaliygaliy6445
    @vitaliygaliy6445 Před 3 lety

    Hi Maksim! Do you use mobx-state-tree in your applications?

  • @shabzkhan1470
    @shabzkhan1470 Před 2 lety

    Apart from mobx vs redux, you covered hooks too. Nice one!

  • @krige
    @krige Před 2 lety +5

    I have little experience with Redux and no experience with MobX: MobX looks very much simpler to reason on and requires a lot less boilerplate code

  • @sunstrike8943
    @sunstrike8943 Před 4 lety

    Hello everyone what is .d.ts I don't understand .d mean in react+typescripts kindly explain me

    • @iSyr0n
      @iSyr0n Před 4 lety

      It is a typescript definition file. In other words, a file that contains typescript definitions (types, interfaces, and so on).

  • @user-kr6lp7rm5y
    @user-kr6lp7rm5y Před 4 lety

    OrderStore использует ProductsStore, а если при этом ещё ProductsStore использует OrderStore. Как быть в этой ситуации?

    • @satansdeer1
      @satansdeer1  Před 4 lety

      Гена Петров это кольцевая зависимость, так быть не должно, надо распутывать

  • @yahubbrain7693
    @yahubbrain7693 Před 4 lety

    Хороший контент, Максим, отличная подача. Почему снимаешь на английском?

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

      Привет, Живу в европе, поэтому хочу прокачивать личный бренд на английском

  • @adhityasanjaya1593
    @adhityasanjaya1593 Před 4 lety

    cepet banget bang, ane pusying....

  • @user-kr6lp7rm5y
    @user-kr6lp7rm5y Před 4 lety

    Предпочитаю использовать easy-peasy вместо redux toolkit

    • @satansdeer1
      @satansdeer1  Před 4 lety

      Зачекаю, а чем лучше?

    • @user-kr6lp7rm5y
      @user-kr6lp7rm5y Před 4 lety +1

      @@satansdeer1 например, не нужно типизировать хуки при использовании useStoreDispatch, есть computed property и тд.

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

      Ништяк, спасибо

  • @ericzorn3735
    @ericzorn3735 Před 4 lety

    redux-toolkit.js.org/usage/usage-with-typescript
    Here is the link above ^

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

    Why mobx is called easier than redux and here its like 60% video mobx and 40% redux. I dont see how mobx is easier to learn than redux.