News for hackers. Stuff that matters.
Re:Waku: The Minimalist React Framework with Server Components by willsmith72 on Sunday August 27, 2023 @12:02PM (#37283931)
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.

Re:Waku: The Minimalist React Framework with Server Components by SwiftyBug on Sunday August 27, 2023 @02:00PM (#37285101)
I'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.