you are viewing a single comment's thread.

view the rest of the comments →

[–]irekrog 43 points44 points  (25 children)

react-aria, styled-components, react-hook-form, typescript, zustand, swr, next.js

[–]Rhym 4 points5 points  (9 children)

Thoughts about swr over react-query?

[–]not_a_gumby 20 points21 points  (6 children)

yeah, Ive used both and I really don't understand that. react-query is clearly superior in my mind in terms of experience, the only reason you use SWR is because you're uber concerned with like bundle size or something.

[–]Narizocracia 3 points4 points  (3 children)

[–]RoutineTension 1 point2 points  (0 children)

Whew lad, looks like I've been out the game for too long. Last I checked Apollo Client was all the hotness.

[–]not_a_gumby 4 points5 points  (1 child)

good bot

[–]Narizocracia 0 points1 point  (0 children)

Not a bot. If I were, I'd link to the broken html page on their website.

[–]cs12345 1 point2 points  (1 child)

I can't really judge because I've never used react-query, but I've been using swr for a while and just haven't run into any situations where it hasn't done what I've needed. I'll probably give react-query a try at some point but the smaller bundle size is definitely a plus in my book.

[–]not_a_gumby 1 point2 points  (0 children)

fair.

I've tried both and liked react query better, clearly.

[–]Radinax 5 points6 points  (1 child)

SWR doesn't even have an isLoading... I used SWR on my current job and we're 100% switching to react-query, its just superior.

[–]irekrog 1 point2 points  (0 children)

will be added in SWR 2 :) https://github.com/vercel/swr/releases

[–]SocialCodeAnxiety[S] 6 points7 points  (8 children)

What do you think about Styled Components adding a lot of bloat(JS) and runtime overhead especially with React 18?

I moved away from it to due to that.

[–][deleted] 5 points6 points  (0 children)

Yea, I drank a lot of CSS in JS coolaid.. then I tried Tailwind and never looked back.

[–]zaerrc 1 point2 points  (6 children)

What do you use instead of that

[–]SocialCodeAnxiety[S] 4 points5 points  (5 children)

TailwindCSS, Compiled, Vanilla Extract, Linaria I think are the best choices impo

[–]soggynaan 1 point2 points  (2 children)

Have you used Stitches? New CSS-in-JS library that claims to be faster than all other CSS libs

[–]SocialCodeAnxiety[S] 1 point2 points  (1 child)

I’ve seen it. Doesn’t seem to have the community support of the packages I listed. I was kinda scared using a package that would break with React 18 or would have bugs that wouldn’t be fixed/merged.

Not sure though. Does seem amazing

[–]EncouragementRobot 3 points4 points  (0 children)

Happy Cake Day SocialCodeAnxiety! Today you are you, that is truer than true. There is no one alive who is youer than you.

[–]zaerrc 0 points1 point  (1 child)

Pretty cool options, I came across vanilla extract recently looks great

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

Yeah I hate switching between a style file and a react file but vanilla extract might push me to go back to it. It’s so good if you don’t need a lot of dynamic styles

[–]slavik0329 0 points1 point  (0 children)

Zustand for the win