-
i have a
i get this error : React Hook "useRouter" is called in function "cell" that is neither a React function component nor a custom React Hook function. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
i fix it with new component in cell
|
Beta Was this translation helpful? Give feedback.
-
Hi, If anyone is still having this issue, I fixed it by converting the arrow function to a normal one with a Name() const columns = [
{
cell: function CellComponent({ row }) {
const value = useHook(); //Now working
},
},
];
Hope this helps |
Beta Was this translation helpful? Give feedback.
i fix it with new component in cell