Choosing a React framework-thing

TL;DR need to build simple frontend for tool, what should I use? Hey! I'm going to be building a request profiler at/for work and I want it to have a simple UI to make it easier to look through the output etc. React is pretty much the only frontend library/framework I've spent over 1000 hours with with (I'm a jr. backend dev, will be taking on a more fullstack role soon), so I think I want to use that for it. Question is, which of the React frameworks/stacks should I choose? I like t3 a lot, but I don't think I really need Next for this as it's probably going to be a single page anyway. I've used Astro before, but that too seems like overkill for such a task. People seem to not recommend CRA for reasons that I'm too junior to get into, but maybe it's good for something like this? Do I even need React or would vanilla JS suffice (without taking 2x long to build). SEO is irrelevant ofc since it's just an internal dev tool, as is perf to a certain extent. There are no requirements - it's sort of a "for fun" project -, but I guess it would be nice if it easily fits in with the rest of the stack, so TS, React, GraphQL, Redis/Mongo get bonus points lol (the latter is irrelevant for this question, but throwing it out there just in case). Sorry for the wall of text, and thanks!
11 Replies
Aland
Alandā€¢2y ago
Don't overthink it, if you are comfortable with react just go with it. You can use t3 without Next.js but you'll need an express server because react doesn't come with one. So i recommend going with Next.js.
Sybatron
Sybatronā€¢2y ago
If it's going to be SPA you can always go with Vite with React or Preact
Anna | DevMiner
Anna | DevMinerā€¢2y ago
wow, I didn't know t3 was available without Next.js lol
Aland
Alandā€¢2y ago
Yes you can set it up with any framework but the developer experience is just not the same as Next.js https://trpc.io/docs/client/setup
Anna | DevMiner
Anna | DevMinerā€¢2y ago
t3 != trpc lol
Sybatron
Sybatronā€¢2y ago
Yarn remove next and pray the setup doesn't explode šŸ˜‚
lofi
lofiā€¢2y ago
choose what you go fastest / most brrr brr in -- try things out but dont feel compelled to do "what everyone else is doing" all the time, thats permajunior mood
Cynicade
Cynicadeā€¢2y ago
Thanks for the input guys :) I think Iā€™m gonna write the backend/profiler stuff in Rust because Iā€™m learning it and do the frontend using Vite (wanted to check that out someday anyway)
Brendonovich
Brendonovichā€¢2y ago
if you want typesafety between your backend and frontend checkout rspc hehe
Aland
Alandā€¢2y ago
Lol it's 1:15 AM i couldn't sleep i remembered i typed t3 šŸ˜‚ I meant trpc my bad, i also thought the OP typed trpc I guess i need more coffee
Anna | DevMiner
Anna | DevMinerā€¢2y ago
maybe go sleep xd
Want results from more Discord servers?
Add your server