api route and server action
Unanswered
Philippine Crocodile posted this in #help-forum
Philippine CrocodileOP
Hi guys, I'm not familiar with NextJS. I want to ask Is it possible to write api in next js that return a component? I mean I have another MVC source and I want to create some modals that are built from next js. I want nextjs to return for me pre-built html/css/js and I just display it on my screen. Sorry, If my question is silly
1 Reply
West African Crocodile
I think it's possible to send html/css/js files in json format to React components via API.