КОМЕНТАРІ •

  • @siyaram2855
    @siyaram2855 2 роки тому +7

    It is a great video. Please do more of these in future.
    It is true react ecosystem is quite rich. We can use it to Rails Advantage.

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

    Im going all in with rails, thanks for the help

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

    In my experiments I went deeper. I added prebuilt preactjs and used slim template to render form managed by it. Yeah, it looked bad, but it was fun 😅

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

    Great video! We all need to be reminded that its not an either or battle when it comes to picking technologies.

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

    Great video as always. How would I handle adding multiple React components to a Rails app? So I see how you target the the React root in the application.tsx file, but what if I had a different component on a different page?

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

      Hey James, it would be exactly the same. Look for the ID and if found, initialize the component.
      You might have to hook into the turbo:load event to re-trigger the ID search.

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

      @@mixandgo thanks for the reply.

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

    Because, "why not" - chuckled at that. Good video, got a new sub.

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

      Thanks for the sub Michael

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

    Chakra UI can do everything that Tailwind does and more. Why are you adding both of them? Won't it add it the page load time?

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

      I'm not concerned about page size in this video. The point to show it's possible.

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

    can you make in depth series of this topic? I found difficult to implement React and Hotwire together/ at the same time. We actually okay to watch your explanation in live stream in this channel/ Twitch or you can make playlist for this series. Hope you see this comment and can consider my opinion.✨

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

      I'd love to. What seems to be the challenge? Aside from what I'm showing in this video.

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

      @@mixandgo maybe you can share how to integrate react and hotwire with rails in your best practice which also use typescript(I just realize this vid use ts 😂) and how to provide file upload with activestorage's direct-upload using some ui components, can be chakra/material/ mantine/ etc, cuz we all still can't find proper way to improve file upload experience in rails even using hotwire's magic wand

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

    Is this in the course? I can't find it

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

      The course doesn't focus on React. It's all about Hotwire. This video shows you that it's possible to sprinkle some React on a Hotwire driven Rails app.

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

    Hey I know you probably are very busy, but could you make like a small app like this but step by step on a video mixing Rails and React in this way! My request comes from the very little amount of information available on this topic specifically. Thanks in advanced

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

      Hey Daniel. Check out my Practical Ruby on Rails For Beginners class where I teach all this step-by-step. Here's the link: mixandgo.com/rails-class.

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

    Hi is not a better option use Hotwire with Stimulus Reflex, I dont know if yiu hear about stimulus reflex

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

      I've heard about it, I even have a few videos on the channel using it. But I haven't looked into the differences much.
      Not sure if you're asking about React vs. StimulusReflex, or Turbo vs. StimulusReflex.
      Could you be more specific? Especially what you mean by "better".

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

      Hi Mix & Go , I tried to say about React vs Stimulus Reflex. My suggestion is to use stimulus reflex with hotwire together in the same application or other option is use hotwire + stimulus js if you need apply reactive in front end.

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

      @@crr4141 Well, they are different tools. With React, the tooling and the ecosystem are not something you can ignore. Also, a lot of people are familiar with it.
      StimulusJS is new, it's a different approach, it's a tiny tiny community, it lacks documentation, support, etc.
      So "better" means different things to different people. What I would advise though is to learn both, and use the one that makes more sense for the given context.

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

    Next time please try to do something with preact. It is 3kb version with almost same features as react.
    Would love to see svelte with rails too

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

      I'll look into both preact and svelte.

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

    can u use nextjs?

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

      I don't see how that would be useful.

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

    If possible please try to do Next.js with Hotwire.
    That would be something totally new.
    We will get Next js frontend capabilities and Rails rich backend facilities.

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

      I don't see how that would work. Do you mean a Rails API?
      Hotwire IS an SPA. So, it's like Next.js in a sense.

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

      @@mixandgo Yes, but isn't Hotwire working though websockets?

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

      Well, parts of it. There's client side JS which renders the payload, I need to look into what would be possible.
      What do you like about Next.js?

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

      ​@@mixandgo Inbuilt-routing(No need to mess with a routing library anymore), Progressive SSR, SEO-friendly, Suspense Support, URL imports(like Deno), Image Optimization, etc

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

      @@siyaram2855 Is there anything you like that's not available in Rails?

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

    First! Awesome video!

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

      Thanks man 👍

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

    Please keep font little bigger for poor mobile phone users.