41
loading...
This website collects cookies to deliver better user experience
...@remix-run is the same as @reactjs with just a different syntax
...@nextjs is used for building todo apps, and from what I see, Remix is no different.
@remix-run is a fullstack framework, meaning it is like React that renders to the Virtual DOM at the front and it is like Node.js at the back
Image sourced from MDN Docs
example.com/sales/invoices/102000
and we see how Remix breaks down the site into small, bite-sized chunks that load simulataneously. Imagine we want to navigate to example.com/sales/subscriptions/302900
, in our normal front-end framework, we request the new URL and the server responds with the page, the whole page. It takes time to load example.com
, then the "sales" route, etc. And God help us if caching is disabled and our page is UI heavy (lots of animations, designs,transitions, etc.). In Remix, because the only route changing is invoices/102000
=> subscriptions/302900
, the server doesn't need to re-fetch the entire document, just the segment it needs because they all share the same layout. This speeds up page load because the data fetched is obviously smaller, thus the Time-To-Interact (TTI) is much smaller which leads to a happier user experience.