Simplify React and Phoenix using Inertia JS: A quick look

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 26

  • @joemartinez3218
    @joemartinez3218 3 месяца назад +5

    Just echoing the prior comments - this video was really well done. I had looked at inertia and didn't grok it. This video cleared that right up!

  • @vic1918
    @vic1918 2 месяца назад +1

    This is CRAZY FUN! Thank you very much for the content.

  • @mathieudelacroix9154
    @mathieudelacroix9154 3 месяца назад +3

    Straight to the point, that's a great video and I am definitely gonna try inertia

  • @DanielBergholz
    @DanielBergholz 3 месяца назад +2

    This is great! Thanks for sharing!

  • @valeriehyun2512
    @valeriehyun2512 Месяц назад

    can you review Live Svelte, or Live Vue? i think its more relevant rather than react and phoenix with inertia bridge..

  • @nirmitdalal1551
    @nirmitdalal1551 Месяц назад +1

    Amazing! Your style is genuinely refreshing 👍🏻

  • @webspaceadam
    @webspaceadam 3 месяца назад +2

    so cool we have an adapter that is official now.

  • @0Orion
    @0Orion 2 месяца назад

    Can React Inertia be used with Ash framework?

    • @CodeAndStuff
      @CodeAndStuff  2 месяца назад +1

      I think they would be compatible, but I haven’t given it a try yet!

  • @pl4gueis
    @pl4gueis 3 месяца назад +1

    I get the argument about having to use React if you are forced to use a component library (ask yourself if its worth the complexity) but whats up with all the arguments about "high latency connection"? Its not like React doesn't need to also fetch stuff from the server and in form intensive web apps there is really no difference. You load the page. Fill the form and send it to the server.

    • @CodeAndStuff
      @CodeAndStuff  3 месяца назад +1

      The latency stuff comes up for immediate interactivity like opening a modal. There were arguments against Rails Hotwire a few weeks ago where the Hey calendar was compared to Google Calendar. Since the modal code was included in the calendar code bundle, the time from clicking the “new event” button to the modal showing was near-instant. In a Hotwire / Liveview context, this button press event would be sent to the server and HTML would be returned.

    • @CodeAndStuff
      @CodeAndStuff  3 месяца назад +1

      Agreed though: if a server round trip is required for both approaches, or if the JS bundle is excessively large, the advantage may swing back toward the server-rendered approach.
      “It Depends” is definitely in play here.

    • @pl4gueis
      @pl4gueis 3 месяца назад +3

      @@CodeAndStuff Way too many people don't like "It Depends" because they want it to be easy but engineering is not and never will be easy so its ridiculous to cling to that. Imagine saying building a house is easy and there is only 1 way for everyone.
      Thanks for claryfing the thing with the Modal :). Didn't know that.

  • @balen7555
    @balen7555 2 месяца назад +1

    How does this compare to live_svelte? There I get the best of both worlds kinda, where I do server rendering, but for immediate actions where latency hurts (like opening modals), I just use client sided svelte.

  • @prashlovessamosa
    @prashlovessamosa 3 месяца назад +1

    Please create more stuff on phoenix

  • @solvm1652
    @solvm1652 3 месяца назад +2

    oh snap

  • @ignasiespi
    @ignasiespi 3 месяца назад +1

    great format, explanative but straight to the point!

  • @ebm_gamer
    @ebm_gamer 3 месяца назад +1

    This is a really cool stack, thanks for sharing!

  • @hugobarauna
    @hugobarauna 3 месяца назад +1

    Awesome!

  • @JonathanYankovich
    @JonathanYankovich 3 месяца назад

    Very nice. I wonder if it will *only* work with React, or if it will mount any type of function component?

    • @CodeAndStuff
      @CodeAndStuff  3 месяца назад

      Inertia supports React, Vue, and Svelte out of the box. The protocol is pretty simple, so I imagine one could port it to anything else with a little effort if there isn’t already an unofficial adapter out there.

  • @eileennoonan771
    @eileennoonan771 3 месяца назад

    It would be interesting to see a comparison between this and LiveView

    • @CodeAndStuff
      @CodeAndStuff  3 месяца назад +2

      I considered diving deeper into that comparison, but realized in my mind it comes down to this:
      If you don’t need to use React, Vue, or a ton of JavaScript that’s hard to fit into a hook, LiveView is probably the best choice for an Elixir team.
      If you have extreme client-side functionality requirements or strong latency concerns, consider Inertia.