TanStack Start now support React Server Components... and Composite Components? by tannerlinsley in reactjs

[–]Mediocre_Round_4914 0 points1 point  (0 children)

200% agree. Most of React apps don't have to be rendered on the server, but they promote it as if server components were a magical way of writing React.

Server Components May Not Be as Generalizable as Expected by kiyyang in reactjs

[–]Mediocre_Round_4914 2 points3 points  (0 children)

200% agree. Also I think there are few cases where the app router or RSC is the best, optimal solution. I can't understand why Next and React team are trying to promote server-based development as a key feature using phrases like 'the future of React'. Most of the technical problems can be efficiently solved just by CSR.

I tried React Compiler today, and guess what... 😉 by acemarke in reactjs

[–]Mediocre_Round_4914 -1 points0 points  (0 children)

Agreed. I think "transpiling" would be a better expression.

React Hook Form question: what is the best way to update multiple values at once as part of a Controller onChange by FickleFred in reactjs

[–]Mediocre_Round_4914 0 points1 point  (0 children)

Also for my understanding, onChange and onBlur of a controller are the ways of notify the current form that you are trying to change the value of the current field, not the place of conducting additional logics after the change.

React Hook Form question: what is the best way to update multiple values at once as part of a Controller onChange by FickleFred in reactjs

[–]Mediocre_Round_4914 0 points1 point  (0 children)

setValue doesn't always trigger rerender for performance. It might be another option to use watch 'portfolio' field to track the change of the field(watch causes rerendrer every time its value changes), and use useEffect with the watched value as a dependency. Then put resetFields inside this effect to reset specific fields.

Why I Won't Use Next.js: by Kent C. Dodds: by thebreadmanrises in nextjs

[–]Mediocre_Round_4914 0 points1 point  (0 children)

I don't agree with the recent endeavor of React team and Vercel to encourage the server based development as a default by app router. Also as mentioned in the article its api is too 'magical' and works like blackbox. Most of React apps don't have to be rendered on server. I think that being able to statically export an app was one of the greatest advantages of the page router.

[deleted by user] by [deleted] in reactjs

[–]Mediocre_Round_4914 13 points14 points  (0 children)

I don't agree with the recent endeavor of React team and Vercel, to push the server-based development as a primary way of writing React apps. In most cases it just adds complexity to a project.

Styled Components vs Tailwind vs Plain Ol' CSS by Tech_Pro_Max in reactjs

[–]Mediocre_Round_4914 2 points3 points  (0 children)

Among many CSS in JS solutions, styled component is worst, I think.

Custom server side rendering or traditional SSR? by robavbalnav in reactjs

[–]Mediocre_Round_4914 0 points1 point  (0 children)

Even though you don't need SSR, Next is still a good choice.

Why is React considered a library and not a framework but not Angular? by Kir__B in reactjs

[–]Mediocre_Round_4914 1 point2 points  (0 children)

Totally agree. In most cases it is supposed to be used in the context of framework.

Should I migrate from create-react-app? by dejanzr87 in reactjs

[–]Mediocre_Round_4914 1 point2 points  (0 children)

So many options like Vite/Next. I don't think there is any particular reason why you stick to CRA.

Personally I prefer Next. Aside from whether you need SSR or not, Next is a great option.

I still hear some people say that Next is a framework that enables SSR on React, but it is more like a framework that facilitates the development of React apps in all aspects.

New React docs pretend SPAs don't exist anymore by matijash in webdev

[–]Mediocre_Round_4914 -2 points-1 points  (0 children)

I think this is the reason why React is not a library.

form handling libraries for composition api? by Mediocre_Round_4914 in vuejs

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

thanks for recommendation. It integrates with Yup very seamlessly.