7 ms·
No such thing as one true way with React and the pain is just as bad if not sometimes worse. Do you choose createreact app / webpack / vite / next.js ? Do you
by tiew9Vii 2y ago
No such thing as one true way with React and the pain is just as bad if not sometimes worse.
Do you choose createreact app / webpack / vite / next.js ?
Do you choose built in react state/contexts, redux, recoil, zustand, jotai state libraries?
Do you do data tables yourself or use the behemoths TanStack, react-table-libray, MUI x-data-grid
What about HTTP requests? Fetch api? axios? rtk-quey?
What about forms and validation? KISS simple, do it yourself? react-hook-form + zod, tanstack form?
Now how do you integrate them all in to your app, managing each edge case for each dependency with their own opinionated way of doing things not quite neatly working with your other dependency but can brute force it to work with some effort and hacks?
I find things like doing basic vanilla JS, or even things like of Svelte or Elm far less pain than React projects i've worked on. Svelte/Elm did require reading the docs not relying on a LLM.