What is type of Server Component?
Answered
indicozy posted this in #help-forum
indicozyOP
Hi there!
What is the type of server component which is async function? Is it just Promise<JSX.Element>?
What is the type of server component which is async function? Is it just Promise<JSX.Element>?
4 Replies
@indicozy Hi there!
What is the type of server component which is async function? Is it just Promise<JSX.Element>?
the return type is
Promise<JSX.Element> yesAnswer
@joulev the return type is `Promise<JSX.Element>` yes
indicozyOP
Thanks! Is there any variable/type in next's library that I can retrieve it from or should I just create my own?
just create your own
@joulev just create your own
indicozyOP
gotcha, thx again!