How to pass a component as prop to <DataTable>
in NextJS
#1666
Unanswered
lomirus
asked this question in
PrimeReact
Replies: 1 comment
-
I am not positive but all PrimeReact components are UI components and have to be marked |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a table and its data are static so I marked it as
"use server"
:There is also a header that uses the
useState()
, so it has to be marked as"use client"
:However, every time I attempted to use the
<Header>
in<DataTable>
, it gives me an error:But it cannot be marked with
"use server"
, because it uses theuseState()
. How should I solve this error?Beta Was this translation helpful? Give feedback.
All reactions