Better HN
topnewbestaskshowjobs
Log inSign up

whoishiringbrad

6 karma · joined Feb 8, 2024 (2y ago) · 4 submissions

Submissions

comment 2y ago · link · parent

Here are some simplifications that are worth mentioning, I think, of course, it's easy to find fault with any of them. But I'd be curious in what you think is a better alternative.

- loader, action, component colocation

- code splitting without thinking about it

- automatic data revalidation on mutation

- useFetcher for optimistic updates

In terms of the fancier things (the react components) -- none of that is necessary. Personally, I don't use <Await> or <Defer> at all. Although it's nice to know that I need to pull some performance levers, I have those options.

One React component that I do use a lot is <Link>. The thing I love about it is that I can add a <Link prefetch="intent"> to it, and I'll get an near-instant page load when I click it.

The web APIs that I work with in Remix are Request, Response, Headers, Cookie and FormData.

comment 2y ago · link · parent

I definitely can appreciate this sentiment, but I will also add that for me Remix feels like a simplification more than something that's added complexity. It also leans heavily into the Web APIs so you get a lot of non-framework knowledge when you use it.

Personally, I haven't experienced that kind of "this is simpler" feeling since jQuery.

comment 2y ago · link · parent

Have you seen conform.guide? It just became 1.0.0. It's pretty similar to react-hook-forms -- but it's a lot more remix-y.