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
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.
If it's going to be SPA you can always go with Vite with React or Preact
wow, I didn't know t3 was available without Next.js
lol
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
t3 != trpc
lol
Yarn remove next and pray the setup doesn't explode š
choose what you go fastest / most brrr in -- try things out but dont feel compelled to do "what everyone else is doing" all the time, thats permajunior mood
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)
if you want typesafety between your backend and frontend checkout rspc hehe
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
maybe go sleep
xd