Server Side Rendering React with Express

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

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

  • @duypkthg592
    @duypkthg592 9 หลายเดือนก่อน +1

    To be honest, I couldn't sleep for 3 days to find this video🤣Thank you for this very helpful🥰

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

    Thank you for a very demonstrative video. I've been looking at different manuals/guides for how to set up a simple demo with server components, and jeez most of those guides are not very good. some work with very very experimental packages or with next.js and create react app and ect.
    This is the only guide i came across that only requires express & webpack and it works. Thanks.

  • @andrewdatar9880
    @andrewdatar9880 ปีที่แล้ว

    Great setup! Thank you for sharing. Your blog is awesome too. Please fix broken images in articles (pointing to localhost), example - in WebSockets Explained article

    • @WittCode
      @WittCode  ปีที่แล้ว +3

      Hey there thanks! And yeah It's been broken for a while I believe can't believe I have it pointing to localhost lol but I'll fix it!

  • @DKfolkin
    @DKfolkin 11 หลายเดือนก่อน

    Awsome, no water, so clear. What do you think about RSC. Can you emplement this feature(RSC) to your codebase?

    • @WittCode
      @WittCode  7 หลายเดือนก่อน +1

      I'm not familiar with RSC but I can give it a look!

  • @spuriushs6314
    @spuriushs6314 10 หลายเดือนก่อน

    help me pls, how to use nodemon or something simillar on this project?

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

    What if we want to consume the data from an api?
    How can we do that?

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

      You can just contact any API the way you normally would!

  • @tothebeat5967
    @tothebeat5967 3 หลายเดือนก่อน

    What if you are using something like redux state? How would you go around that?

    • @WittCode
      @WittCode  3 หลายเดือนก่อน

      I'm not totally familiar with redux but I assume that, at its core, it's just a JavaScript package. This means it will be in the bundled React code. So it should be fine!

  • @nameismani9318
    @nameismani9318 9 หลายเดือนก่อน

    can you upload video how to add css files tailwindcss in ssr and how to deploy it in netlify

    • @WittCode
      @WittCode  7 หลายเดือนก่อน

      Not familiar with Netlify but definitley sounds like a good topic!

  • @HafizMujtabaAyyaz
    @HafizMujtabaAyyaz 26 วันที่ผ่านมา

    Is this faster than nextjs SSR?

    • @WittCode
      @WittCode  26 วันที่ผ่านมา

      Not sure I've never used nextjs

  • @Houseofwebz
    @Houseofwebz 8 หลายเดือนก่อน

    please how does one host/deploy a react app that was built using ssr?

    • @WittCode
      @WittCode  7 หลายเดือนก่อน +1

      Good future video topic!

    • @Houseofwebz
      @Houseofwebz 7 หลายเดือนก่อน

      @@WittCode bring it on bro! Patiently waiting

  • @VishalSharma-ri8mo
    @VishalSharma-ri8mo 11 หลายเดือนก่อน

    Please tell me how can I handle cookies with ssr data route array?

    • @WittCode
      @WittCode  11 หลายเดือนก่อน

      Hey there! What do you mean? How to use cookies with SSR? Cookies shouldnt be impacted by using SSR! They will still be sent with each request if they are set on the client correctly

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

    hi will it work on application which uses framer motion?

    • @WittCode
      @WittCode  3 หลายเดือนก่อน

      Hey there! Im not sure what framer motion is!

  • @MNasir-ob4jd
    @MNasir-ob4jd 2 หลายเดือนก่อน

    I'm unable to find code on given link, @anyone ?

    • @WittCode
      @WittCode  2 หลายเดือนก่อน

      It should be on my blog website! blog.wittcode.com

  • @MishraXE
    @MishraXE ปีที่แล้ว

    server started on port undefined, in server.js const PORT = process.env.PORT not working, I'm doing exactly same as the video

    • @WittCode
      @WittCode  ปีที่แล้ว

      sounds like your environment variables aren't being set. How are you running the program?

    • @MishraXE
      @MishraXE ปีที่แล้ว

      @@WittCode I debugged my code and found that there was a typo in my code in new webpack.EnvironmentPlugin. And those clean, build, start commands are working fine on windows. But one problem though, that it throughing error if I use a .css file for styling

    • @WittCode
      @WittCode  ปีที่แล้ว

      @@MishraXE nice! and as for those CSS files they will need to be added to the webpack configuration so they are imported. Ive never actually done ssr with straight CSS though I use MUI...

  • @user-yyyyy877
    @user-yyyyy877 ปีที่แล้ว

    hello. Is there a way to run it without building it?

    • @WittCode
      @WittCode  ปีที่แล้ว

      You mean without building the react app with webpack?

    • @user-yyyyy877
      @user-yyyyy877 ปีที่แล้ว

      sorry. I'm using a translator, so my words may sound strange. Can I run SSR using the devServer option in development mode? In other words, I am curious about whether it can be run without bundling (npm run build).@@WittCode

    • @WittCode
      @WittCode  ปีที่แล้ว

      no worries@@user-yyyyy877 ! Yeah so I could actually make a video on this. Im pretty sure you can do it using webpack dev server but the way I do it in development is use webpack --watch for JSX files and then have nodemon to check for any changes in the compiled js in the build folder. Lmk if that makes sense. So you basically have two watches. One on the project itself and another on the build folder. There might be a better way to do it but that's what has worked for me!

    • @user-yyyyy877
      @user-yyyyy877 ปีที่แล้ว

      @@WittCode Thank you so much for your reply! I will also test it as you said.!!! :)

  • @noahmilliken4259
    @noahmilliken4259 ปีที่แล้ว

    How com you chose to use webpack?

    • @WittCode
      @WittCode  ปีที่แล้ว +1

      I just know the most about webpack haha so I like to use it

  • @Mari_Selalu_Berbuat_Kebaikan
    @Mari_Selalu_Berbuat_Kebaikan 7 หลายเดือนก่อน

    Let's always do alot of good

  • @romanmed9035
    @romanmed9035 7 หลายเดือนก่อน

    can i use redux with this rendering?

    • @WittCode
      @WittCode  7 หลายเดือนก่อน

      Wouldn't see why you can't!

    • @romanmed9035
      @romanmed9035 7 หลายเดือนก่อน

      @@WittCode I don't understand how it will work in two places at the same time. I suggest making a video on this topic.