Remix is starting to excite me

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2023
  • I've...never been the biggest fan of Remix, let's be honest. That said, I'm really hyped about recent changes. With Mark Dalgeish pushing Vite and now Ryan Florence embracing React Server Components, the future is more exciting than ever
    Ryan announcement tweet: / 1729274387671760936
    Remix roadmap on Github: github.com/orgs/remix-run/pro...
    Check out my Twitch, Twitter, Discord more at t3.gg
    S/O Ph4se0n3 for the awesome edit 🙏
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 91

  • @markjohndalgleish
    @markjohndalgleish 6 หลายเดือนก่อน +179

    Thanks for the huge shout out, it really means a lot to me 🙏
    Just wanted to add that the Vite plugin was driven by Pedro Cattori just as much as me and it wouldn’t have happened without him 🍻

  • @mattiarasulo9934
    @mattiarasulo9934 6 หลายเดือนก่อน +43

    I use Remix all day every day and it’s great as it is. If you need data in a component you can use a fetcher and use a resource route it’s untrue you are bound to only use route-level fetching..

    • @manupadev
      @manupadev 6 หลายเดือนก่อน +3

      But you are doing a client side data fetching request right ?

    • @mattiarasulo9934
      @mattiarasulo9934 4 หลายเดือนก่อน +1

      @@manupadev No you can fetch the resource route from another loader as well!

    • @Andrew-fy4cv
      @Andrew-fy4cv 4 หลายเดือนก่อน

      @@mattiarasulo9934 Yes you can do so but whenver i do it feels like I'm being naughty. Like really remix wants me to route-level fetching for everything but it just humors me doing it with useFetcher/useSubmit

  • @VeitLehmann
    @VeitLehmann 6 หลายเดือนก่อน +38

    Server components never really clicked with me in the context of Next.js. I get the idea, I see the potential benefits. But with the Next.js implementation right now I don't feel like it's guiding towards a maintainable codebase. And the pages router in Next.js was also flawed. This concept is executed much better in Remix. So I'm really optimistic that the Remix folks will also find a great way of integrating server components. Yeah, I'm as hyped as you are!

  • @JEsterCW
    @JEsterCW 6 หลายเดือนก่อน +75

    Remix DX over Next is like 10x more productivity without any shithole.

    • @apidas
      @apidas 6 หลายเดือนก่อน

      Ikr, it's a no brainer

  • @gjhhj6y
    @gjhhj6y 6 หลายเดือนก่อน +14

    It’s dumb to dismiss route loading so heavily. It works, and is clear + productive.

  • @anttihilja
    @anttihilja 6 หลายเดือนก่อน +29

    Vite, single fetch, SPA mode, RSC, middleware, server context. Remix is getting loads of interesting improvements.

  • @MrStupiuno
    @MrStupiuno 6 หลายเดือนก่อน +22

    I thought you were a simple advert Vercel shill. This is a breath of fresh air tbh.

  • @shantanukulkarni007
    @shantanukulkarni007 6 หลายเดือนก่อน +12

    And then "Everything fell apart". Last 15 years of js and Frontend development summed up in 3 words

    • @TomNook.
      @TomNook. 6 หลายเดือนก่อน +1

      its insane how things have "evolved"

  • @OvidiuIspas
    @OvidiuIspas 6 หลายเดือนก่อน +21

    Good wrap-up video on Remix, however I believe the claim that loaders and actions are BAD DX is subjective. I have used both RSC in Next, and loaders and actions in Remix and actually love actions and loaders.
    In my (subjective) opinion, the DX is actually like Tailwind: You may have mixed feelings when you see it from a distance, but wouldn't do it any other way once you used it!

    • @chopfitzroy
      @chopfitzroy 5 หลายเดือนก่อน

      Could not agree more with this statement, was a big Next fan, initially thought I didn’t like the action loader pattern and now (just like Tailwind) I can’t stand working with anything else.

  • @ThomasValadez-tv
    @ThomasValadez-tv 5 หลายเดือนก่อน +2

    So... This route level data actually composes quiet well when working with nested layouts. It is an alternative solution to the problem mentioned of product detail component having it's own data.

  • @davidhollenbeck1674
    @davidhollenbeck1674 6 หลายเดือนก่อน +6

    remix gang rise up

  • @sahilaggarwal2004
    @sahilaggarwal2004 6 หลายเดือนก่อน +15

    Theo is no longer my favourite vercel employee...?

    • @MrStupiuno
      @MrStupiuno 6 หลายเดือนก่อน +16

      Ikr, it almost like they are late on their monthly sponsor payment or something.

    • @sahilaggarwal2004
      @sahilaggarwal2004 6 หลายเดือนก่อน

      @@MrStupiuno 😂😂

  • @yarrichar
    @yarrichar 6 หลายเดือนก่อน

    Thumbs up for the really clear explanation of server components, and the benefits. It hadn't really clicked for me before. Thanks!

  • @kabal911
    @kabal911 6 หลายเดือนก่อน +31

    The “lots of components that need data” pattern is the problem in react. People abstracting too many components.
    in a ton of react projects I see, I'd say that 90% of the non-primitive components are used in 1 route, yet they are in some “shared” component tree

    • @meowmix0008
      @meowmix0008 6 หลายเดือนก่อน +1

      Part of that is to optimize what rerenders

    • @adtc
      @adtc 6 หลายเดือนก่อน +1

      This is kinda solved in React App Router by having localized components that live next to page.tsx. Still allows separation without throwing them into a shared tree.

    • @kabal911
      @kabal911 6 หลายเดือนก่อน

      @@adtc 100%. No different to having a bunch of “private” functions. And because they are in the same “scope”, with Remix/App Router, you can still use “loader data” in those components.
      The best of both worlds IMO

  • @mentoriii3475
    @mentoriii3475 6 หลายเดือนก่อน +5

    i like DX more on Remix than Nextjs, also i like Remix embraces the good old web platform

  • @ShaneCodes
    @ShaneCodes 6 หลายเดือนก่อน +1

    I'm so pumped that you're getting into remix.

  • @seunghakim6748
    @seunghakim6748 6 หลายเดือนก่อน +1

    wooooow!! finally I can hear about remix on this channel!! I have been really looking forward it! thanks!!

  • @ccccjjjjeeee
    @ccccjjjjeeee 6 หลายเดือนก่อน +12

    i love remix's router, and i'm excited to see how they fit rsc into it. theres still issues, but ive been getting somewhat remix pilled too lately.

    • @ccccjjjjeeee
      @ccccjjjjeeee 6 หลายเดือนก่อน +2

      remix's "route level data fetching" works much better imo when combined with react query. the loader just contains some `ensureQueryData` and then the component has the normal query in it. best case is the same as "normal" remix but everything is normal again, worst case is a minor waterfall.

    • @ReactTipsWithBrooks
      @ReactTipsWithBrooks 6 หลายเดือนก่อน

      @@ccccjjjjeeee have you played around with using react query in combination with the new clientLoader/clientAction? What you have described is something I've been thinking could be a pretty solid pattern with those new APIs, but I haven't found time to test it out.

  • @user-xj5gz7ln3q
    @user-xj5gz7ln3q 6 หลายเดือนก่อน +131

    Am I the only one who no longer finds any of these front-end frameworks exciting? Am I fatigued out? I watched Theo's entire video and all I can hear is blah blah blah.. blah..

    • @reanukeaves
      @reanukeaves 6 หลายเดือนก่อน +29

      Me too. Honestly, this whole RSC stuff is weird. It's like the worst of all worlds. JS was meant to be a lightweight language that adds interactivity to the client. React took that paradigm and made it better and more streamlined. Now we're writing server code in JS for the frontend... that's also mixed up with the backend?

    • @kkebo
      @kkebo 6 หลายเดือนก่อน +24

      Skill issue

    • @devonpmack
      @devonpmack 6 หลายเดือนก่อน +1

      ​@@reanukeavesbecause it makes the dev experience way better

    • @rajikkali2381
      @rajikkali2381 6 หลายเดือนก่อน +3

      It’s because AI will need to control frontend and backend in the same project to streamline code generation.
      That’s my take on it.

    • @TomNook.
      @TomNook. 6 หลายเดือนก่อน +5

      @@kkebo I bet the house you've not shipped a single project into production with a team.

  • @carlosricardoziegler2650
    @carlosricardoziegler2650 6 หลายเดือนก่อน

    Really interesting video, I think we need more videos or specific video about waterfall data fecthing, is really an interessing topic :)

  • @pencilcheck
    @pencilcheck 6 หลายเดือนก่อน

    awesome! i am still using vike + telefunc though, but good news for those using remix

  • @mintlata
    @mintlata 6 หลายเดือนก่อน +1

    6:30 Where's the video in the corner about "SSR and how all of this stuff works"

  • @struggopuggo
    @struggopuggo 6 หลายเดือนก่อน +1

    Server components were enough for me to start looking at other libraries and ultimately I've moved to Svelte(kit). Maybe I'll be proven wrong in time about server components but I think Remix & Sveltekit just have a better DX.

  • @sergeev_oleg
    @sergeev_oleg 6 หลายเดือนก่อน

    This black curtain is dope 🤩🗿

  • @mistersunday_
    @mistersunday_ 6 หลายเดือนก่อน

    ❤ 💿

  • @pegak
    @pegak 6 หลายเดือนก่อน

    What about Modern.js? They are also working on RSC and Server Actions are being negotiated.
    Will you make a video about it? :)

  • @bideshbanerjee5506
    @bideshbanerjee5506 6 หลายเดือนก่อน

    Data fetching with server component is deeply rooted to react, but I don't know about server action and revalidation part. Is it some next's crazy implementation??

    • @pegak
      @pegak 6 หลายเดือนก่อน

      No, it is not Next Magic, it is built on top of React APIs. You can import function called cache from React or you can import unstable_cache from Next.js (and that is tied to Next).

  • @magne6049
    @magne6049 6 หลายเดือนก่อน

    5:40 Dai-shi just released Waku, which is exactly that.

  • @TheYinyangman
    @TheYinyangman 6 หลายเดือนก่อน

    Route level data fetching ? How is that different to ssr

  • @winterboltgames
    @winterboltgames 6 หลายเดือนก่อน

    I really hope that the flickering in this video is a one-time thing. It is very distracting.

  • @winstonyeo4342
    @winstonyeo4342 6 หลายเดือนก่อน +4

    what about waku?

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 6 หลายเดือนก่อน

    it's no secret that...

  • @benaloney
    @benaloney 6 หลายเดือนก่อน

    Can you do a tutorial on how to make fake Tweet thumbnails? 🙏

    • @paulsesh
      @paulsesh 6 หลายเดือนก่อน

      simply open up dev tools and change the text i guess

  • @shivamjhaa
    @shivamjhaa 6 หลายเดือนก่อน

    This was a good video

  • @eleah2665
    @eleah2665 6 หลายเดือนก่อน

    shhhh ... don't tell anyone.

  • @Malix_off
    @Malix_off 6 หลายเดือนก่อน +5

    Since I use HTMX, server components are not much appealing to see.
    It's just good to know I've been right.

  • @stancobridge
    @stancobridge 6 หลายเดือนก่อน +1

    RSC by default is pain

  • @puopg
    @puopg 6 หลายเดือนก่อน

    React relay kinda neat

  • @AnthonyWebb7
    @AnthonyWebb7 6 หลายเดือนก่อน +6

    Remix needs to stay clean, more bloat != better product

  • @user-hq3dt2mp3x
    @user-hq3dt2mp3x 6 หลายเดือนก่อน

    what does" type safe css" even mean.

    • @markjohndalgleish
      @markjohndalgleish 6 หลายเดือนก่อน +4

      To me, “type safe CSS” means two things:
      1) If your markup assumes a class name exists in a CSS file when attaching it to an HTML element, TypeScript validates that the class does indeed exist.
      2) You’re using TypeScript as your preprocessor rather than a domain specific language like Sass. This means that TypeScript will complain if your CSS preprocessing logic has a type error even if you haven’t run the build yet.

  • @csillagfenynet
    @csillagfenynet 4 หลายเดือนก่อน

    Sorry, but this is a question that really interests me. His mustache is brown,just like mine. But his hair is blond. Mine hair is brown. It is so stange. Is it genetics?

  • @jamesdenmark1396
    @jamesdenmark1396 6 หลายเดือนก่อน

    I really need the RSC so i don't have to expose all the data to the frontend all the time. Since everything you return from loader is exposed to frontend, with the RSC only the component will be exposed, when do we expect this to be released?

    • @neofox2526
      @neofox2526 6 หลายเดือนก่อน

      But you still can't use rsc for all data fetching its just not possible in some cases when you want to use browser apis like window or need to use hooks

    • @jamesdenmark1396
      @jamesdenmark1396 6 หลายเดือนก่อน

      Good points, I want to use them to render stuff only. I think you still can attach events and such so when it runs on the client, the events works as expected.

  • @MikeBifulco
    @MikeBifulco 6 หลายเดือนก่อน +9

    Remix's DX is great - I've enjoyed building with it, but completely abandoned it because the community (leadership) set a really strange tone, and butt heads with other dev communtiies in unproductive ways. That's enough to make me shy away.

    • @jamesdenmark1396
      @jamesdenmark1396 6 หลายเดือนก่อน +13

      I have been using Remix, and it's great compared to nextjs. NextJs just keep releasing new features without thinking why and how. Just for the sake of fanboys to adopt. Remix is simple and easy to use.

    • @MikeBifulco
      @MikeBifulco 6 หลายเดือนก่อน +1

      @@jamesdenmark1396 While I think I can understand the gist of what you're saying, I'm a little sus any time someone starts throwing around "fanboys". It's not a productive conversation. Have something more substantive to say?

    • @dealloc
      @dealloc 6 หลายเดือนก่อน +3

      ​@@jamesdenmark1396 > NextJs just keep releasing new features without thinking why and how.
      You should try to read RFCs and join discussions if you think just release features "without thinking".
      Just as an example, The first RFC for React Server Components was published in December 2020 and was released in May 2023 as an experimental feature in React 18-that's 3 years of discussion, evaluation and implementation. Most of these conversations happened in the React repo and summits.
      Thanks to Next.js' adoption and ability to move things forward, the core maintainers, some of which work at Vercel, were able to push this forward much faster so that a wider audience so it can be improved for more general use cases.

  • @TannerBarcelos
    @TannerBarcelos 6 หลายเดือนก่อน +1

    HTML, CSS and JS. How we’ve gone from that into all this craziness is crazy.

  • @farhanghazali4406
    @farhanghazali4406 6 หลายเดือนก่อน +4

    Guys, Full page reload is OK, internet speed is fast now. :D We don't need complexity in UI anymore with React/Svelte/Vue etc.
    Just use HTMX!!!!!

    • @namangupta1817
      @namangupta1817 4 หลายเดือนก่อน

      Frontend is modern hell now. We are over-complicating everything for saving some milliseconds and reducing build size by some KBs. :/

  • @TheDeprecatedLibrarian
    @TheDeprecatedLibrarian 6 หลายเดือนก่อน +4

    Long live Laravel.

    • @TomNook.
      @TomNook. 6 หลายเดือนก่อน

      I know right? Decade ahead of its time.

  • @nonefvnfvnjnjnjevjenjvonej3384
    @nonefvnfvnjnjnjevjenjvonej3384 6 หลายเดือนก่อน +8

    People should really look at PHP again. Frontend devs are such sheep.

    • @bear458ziif-s
      @bear458ziif-s 6 หลายเดือนก่อน +4

      php is gross, would rather use go or rust as an alternative

    • @nonefvnfvnjnjnjevjenjvonej3384
      @nonefvnfvnjnjnjevjenjvonej3384 6 หลายเดือนก่อน

      @@bear458ziif-s sure use anything else apart from the js ecosystem

    • @TomNook.
      @TomNook. 6 หลายเดือนก่อน +1

      @@bear458ziif-s How is it gross? Always extremely dubious when people make stupid comments like this without justification.

    • @jim.....
      @jim..... 6 หลายเดือนก่อน

      I think php gets a bad name because of wordpress.

    • @nonefvnfvnjnjnjevjenjvonej3384
      @nonefvnfvnjnjnjevjenjvonej3384 6 หลายเดือนก่อน

      @@jim..... that and also people are stuck with a decade old mindset. modern php and the laravel ecosystem is so much cleaner, faster, better than the modern js ecosystem.

  • @Handola
    @Handola 6 หลายเดือนก่อน +11

    PHP better