Using "fs" module in client-side component;
Answered
Oak apple gall wasp posted this in #help-forum
Oak apple gall waspOP
I understand that fs module can be imported only in server side code, what should be the solution then if I need .json data, which I get using fs, and parts of client side functionality (like useState).
Answered by Shy Albatross
load server side stuff on server and pass to the client via serialziable props or an api route? such a generic question
2 Replies
Shy Albatross
load server side stuff on server and pass to the client via serialziable props or an api route? such a generic question
Answer
@Shy Albatross load server side stuff on server and pass to the client via serialziable props or an api route? such a generic question
Oak apple gall waspOP
Well it is what it is. Still thanks for answer