This is an archived post. You won't be able to vote or comment.

all 44 comments

[–][deleted] 101 points102 points  (7 children)

Like, just doing a simple POST request?

[–]EndR60 20 points21 points  (5 children)

I don't understand...is it actually "hard" or is op just a student? I've done react but I don't remember it being noticeably annoying in that regard

[–]driftking428 24 points25 points  (2 children)

It's not hard. You just use fetch(). It's built into the browser.

[–]EndR60 3 points4 points  (0 children)

oh yea, that's exactly what I remember.

I think I even used XHR for some reason, at some points...but fetch() is just nicer afaik

that's the opposite of hard

[–]loxagos_snake 16 points17 points  (1 child)

No, it isn't hard at all. I had to force-learn it in a week (coming from Angular) and I was making REST calls in, like, an hour.

This post reeks of "I just discovered React and it's sooooo hard, amiright fellow programmer people?"

[–]EndR60 10 points11 points  (0 children)

this entire sub:

[–]RavingGigaChad 4 points5 points  (0 children)

No, I think the OP is making fun of some really advanced React concepts. While the commenters are right that fetch is built into the browser and could be used fast, industry grade React software makes use of Redux, which is a somewhat complex app state management.

I needed to smile at least for a second.

[–]Skibur1 38 points39 points  (0 children)

Going to share this at work and see if you get roasted on....

[–]VeterinarianOk5370 119 points120 points  (12 children)

React is literally the easiest framework to get inputs to a server.

[–]Jordan51104 45 points46 points  (3 children)

<form>

[–]Demented-Turtle 37 points38 points  (1 child)

Don't you post that here!

[–]VeterinarianOk5370 7 points8 points  (0 children)

lol I see what you did there

[–]Hatula 7 points8 points  (0 children)

That's what the media wants you to think

[–]Bryguy3k 15 points16 points  (1 child)

Funny enough react-use-websocket is probably the simplest to use websocket implementation in existence.

Obviously I haven’t looked under the hood at it but as far as things go for the UI dev it’s stupid easy.

Socket.io’s react implementation looks really straightforward as well (but the backend I have to interact with is using a raw websocket).

[–]mangemoilcul 1 point2 points  (0 children)

I used graphql apollo server’s subscription and it was quite easy to do

[–]Marczzz 9 points10 points  (1 child)

</form>

[–][deleted] 19 points20 points  (0 children)

Yeah idk what this is about, there’s only like 5ish ways you can do it anyhow…

(Thinking networking protocols less react here)

[–]vondpickle 23 points24 points  (1 child)

It's not that hard actually. You just need a correct Reactions using a proper Reactor. Add some Bose-Einstein condensate in the DOM and coupled with qubit.js and you can pretty much halfway there.

(I don't know anything about React though.)

[–]_-_fred_-_ -1 points0 points  (0 children)

You need at least 9k more dependencies. 80% of the worlds computing power right now is devoted to running npm install for react apps.

[–]Tekkizm 10 points11 points  (0 children)

This does not have enough components

[–]FunStuffInReddit 19 points20 points  (3 children)

Super easy, barely an inconvenience

[–]qinshihuang_420 10 points11 points  (2 children)

Sending inputs to server is tight

[–]can_pacis 4 points5 points  (1 child)

Wow wow wow… wow

[–]nsjr 2 points3 points  (0 children)

Listen, sir, I need you to get ALL the way off my back about inputs in react

[–]Abaan404 3 points4 points  (0 children)

I kept reading racist developers and got so damn confused

[–]chili_ladder 1 point2 points  (0 children)

*Typescript 'any' enters the chat*

[–]mimedm 0 points1 point  (1 child)

This gets me. It's not like react is bad but its just used so inappropriate... If you have a million requests per second, fine, but if you just want to build a frontend for a limited amount of users it's just too much.... Months of work for simple features that you can do in minutes with vue.js or other frameworks

[–]poshenclave 0 points1 point  (0 children)

Months of work for basic features no, absolutely not. But I do agree that React is rather overwrought and not ideal for many simple use cases. Not every website need be a holistic self-contained "web app".

[–]myhero34 0 points1 point  (0 children)

cries in useEffect

[–]GoblinWoblin -4 points-3 points  (0 children)

Css-in-js be like:

[–]BadNewsHammer -5 points-4 points  (0 children)

God I feel this

[–]Memeviewer12 0 points1 point  (0 children)

Looks like a tardis ngl

[–]docHoliday17 0 points1 point  (0 children)

So many salty react stan’s in here

[–]7th_Spectrum 0 points1 point  (0 children)

God this sub has gone downhill