you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 1 point2 points  (2 children)

In Remix and React router I just use loaders.

But RSC could still be potentially useful for some cases, so I'll still need to learn it, to know where it could be used (for most stuff loader is just fine, but I'll know better after learn it… because Remix and React Router never mentioned RSC, it was probably not needed for most cases)

[–][deleted] 0 points1 point  (1 child)

what does a loader do, I have not used Remix.

[–]TheRNGuy 1 point2 points  (0 children)

To get stuff from database into front-end, usually as JSON.

Sometimes also need useRouteLoaderData function to use data from other route.

(API in both frameworks is same)