Yarn workspace with React and React Native

Поделиться
HTML-код
  • Опубликовано: 9 окт 2024
  • Learn how to setup React and React Native in a yarn workspace.
    Code: github.com/ben...
    Links from video: / how-to-use-yarn-worksp...
    ----
    Patreon: / benawad
    ----
    Follow Me Online Here:
    GitHub: github.com/ben...
    LinkedIn: / benawad
    Instagram: / benawad97
    ----
    Join the Discord: / discord
    Twitter: / benawad
    #benawad
    TikTok: / benawad ​

    ----
    Follow me online: voidpet.com/be...
    #benawad

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

  • @Sarmadfarhankhan
    @Sarmadfarhankhan 5 лет назад +1

    Jesus, this is what I was looking for. You're way ahead Ben 👍👍

  • @flashzone9809
    @flashzone9809 3 года назад +3

    Thanks Ben! Great tutorials! This is what I'm looking for. Since this video was 3 years ago, are we still using this method to setup or any new updates? Thank you!

  • @andresmontoya7852
    @andresmontoya7852 6 лет назад +3

    Well.... I prefer to wait when react and react native support perfectly that option of yarn without all that configuration :).

    • @flashzone9809
      @flashzone9809 3 года назад

      Any updates on this? Any solution without configuration?

  • @thelavishcoder2553
    @thelavishcoder2553 3 года назад

    Would this work in production?

  • @nishmamaskey1093
    @nishmamaskey1093 4 года назад

    Thank you for the great tutorial!
    Is there a way I can add "Material-UI" dependency under "peanut/common" and use it in many static create-react-apps under "peanut/server" folder?

    • @bawad
      @bawad  4 года назад +2

      you could import material ui and export it from "peanut/common"

    • @akashshrestha01
      @akashshrestha01 3 года назад +1

      nepali?

  • @zemielasma8986
    @zemielasma8986 6 лет назад

    Awesome!

  • @jasonshen
    @jasonshen 6 лет назад

    very nice video cheers

  • @DrPanesar
    @DrPanesar 6 лет назад

    Hi Ben, For the next major project i wonder what you think of using Next JS for the front end rather than create-react-app? I've been using Next JS for my front end clients for a while now and its a really excellent tool that gives you the best of react and server side rendering built in which is awesome for SEO amongst other things. For a production from end i think its hard to beat.

    • @bawad
      @bawad  6 лет назад +1

      I'm not totally convinced server side rendering is worth

    • @DrPanesar
      @DrPanesar 6 лет назад

      Ben Awad the difference in google search rankings with server side rendering convinced me it was worth it. When you get to production it really makes a big difference. The server side rendered page also allows better linking to your pages but external sites or social media. I was trying to setup next js with yarn workspaces but could get that to work yesterday.

    • @bawad
      @bawad  6 лет назад +2

      There definitely are benefits to ssr, but I would rather not deal with the added complexity. And some of the things can be mitigated:blog.jakoblind.no/is-ssr-worth-it/

    • @WSRast
      @WSRast 5 лет назад

      @@bawad I think you're right about the added complexity, but the link you give doesn't really mitigate the things SSR purports to solve. Saying SEO is okay because Google supports JS-rendered sites, then saying others like Bing do not (maybe they have since that was written) doesn't address the problem; it just argues the problem isn't as bad. Showing dummy content is also no replacement for real content--you can't read dummy content.
      He also doesn't go into the benefits of fetching data to prefill the page on the server. That's something that will be a lot faster from the server than it would generally be from the client. You're saving the user a round trip like that.
      Tackling SSR in a manually configured Webpack project was, for me, a real beast of a task. I'd encourage anyone who feels the need for SSR to look for a prebuilt solution, one of which is Next.js. You really don't want to deal with setting all that up yourself. I certainly will avoid it at all costs.
      I really do like the decision tree flow chart on that page, though. I think many trying to decide whether to tackle SSR or not would be well-advised to go through that, if only to gain some foresight about what they're getting into.

    • @bawad
      @bawad  5 лет назад

      yeah some sites really benefit from ssr and would be much worse with client side rendering

  • @oroneki
    @oroneki 6 лет назад

    Great. The typescript version is comiiiing! :)

  • @sam-zc5ku
    @sam-zc5ku 5 лет назад

    I have two react native apps, the app solution won't work, any other solution?

    • @bawad
      @bawad  5 лет назад

      Not that I know of

  • @bloggervista
    @bloggervista 6 лет назад

    too much complicated

    • @bawad
      @bawad  6 лет назад +1

      I agree