3 ms·
Technically you can still use an API in your server components. But this is what I love about Remix. You write your server and client code in the same place, b
by willsmith72 3y ago
Technically you can still use an API in your server components.
But this is what I love about Remix. You write your server and client code in the same place, but the server code is just an api, so can be reused directly.
- SwiftyBug 3y agoI'm building my first project with Remix. I was very surprised when I found out that I can have an API route just by adding a `export function action() { return json({ message: "it just works!" }) }` in a regular route file. Things are so simple with Remix.