Replies: 1 comment 3 replies
-
Can you provide an example? I’m not sure what you’re asking for here. Thanks! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As React is working on server-side components for do some server-side work in the front-end project,I thinking of implementing isomorphic application in remix framework.In remix, we can write api route and call it in client code.But this method is not easy enough, especially when you have more and more apis,this will require significant maintenance costs.To make the project more structured, we usually put logically related files in the same folder on a page by page basis.So I want to implement a special file type called "Server Function", this js module export a function,when remix building, this function will automatically generate an API route.In client code,we can call this function directly, and SWC/Babel will convert it to calling API route.
Beta Was this translation helpful? Give feedback.
All reactions