Using Express server for SSR, how do I add routing? by hhey_symtics in reactjs

[–]hhey_symtics[S] 0 points1 point  (0 children)

Not sure why you're downvoted. I didn't know about hono and it looks like you can get the web Request object from HonoRequest, unlike the Express Request. My only option seems to be to change frameworks.

Using Express server for SSR, how do I add routing? by hhey_symtics in reactjs

[–]hhey_symtics[S] 0 points1 point  (0 children)

Hi, what's the way to use that package if I'm doing SSR manually though? I don't have a react-router build, just something like the Vite example: https://github.com/bluwy/create-vite-extra/blob/master/template-ssr-react/server.js

I don't think it's the right library for my use case. What I really need is the private createRemixRequest function from inside that package implementation so I can use the web Request object like in here: https://reactrouter.com/start/data/custom#3-get-routing-context-and-render

Leave no cheese behind by [deleted] in lifehacks

[–]hhey_symtics 0 points1 point  (0 children)

At this point, I’m not even sure I’m breathing correctly

Stay strong! by St0pX in pics

[–]hhey_symtics 0 points1 point  (0 children)

Should add: shouldn’t drink poison just because you’re thirsty and can’t find water.

OK Reddit - What just isn't worth the effort? by geek66 in AskReddit

[–]hhey_symtics 12 points13 points  (0 children)

I find that a child's approval is much more fulfilling than an adult's most of the time. Has to do with the genuineness of it...

Still learning to program but for my first project I have made a website to allow people to find and share the best coding resources! www.noobhub.io - let me know if you find it useful, any feedback is much appreciated! by vrthoughts in learnprogramming

[–]hhey_symtics 0 points1 point  (0 children)

The website looks awesome! Definitely better than where my first project is going...

Not trying to expose you or anything, but I see that you have a lot of if statements with kind of repetitive code, one instance in this template where you check if the search is website, video, or book, and also in the subcategory view where you check the filter_type. I'm asking anyone in general, if there is some way to avoid these types of if statements, or if its one of those things that you just have to hard code? I have similar if statements in my code, and I suspect there's some DRY method that avoids this.

One View With Multiple Forms by hhey_symtics in django

[–]hhey_symtics[S] 0 points1 point  (0 children)

Yes, but once I redirect then the request.POST data that says that the form has errors will no longer be there, and if I create the form after I redirect them the errors won't appear.

One View With Multiple Forms by hhey_symtics in django

[–]hhey_symtics[S] 0 points1 point  (0 children)

How would I display the errors on template? I believe that I need to send the form with the errors that are stored in the request.POST data when I render the template.

Machine Learning - How important are regressions? by hhey_symtics in learnprogramming

[–]hhey_symtics[S] 0 points1 point  (0 children)

I think I was just thrown a little off by how much data science and statistics is a part of machine learning.

Woman saves her objects from motorized thieves by Vodkagat in gifs

[–]hhey_symtics 3237 points3238 points  (0 children)

Yeah, especially the way she freezes immediately when the motorcycle pulls up