|
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. |
Answered by
mawnir
Nov 16, 2023
Replies: 2 comments 1 reply
|
i fix it with new component in cell |
0 replies
Answer selected by
mawnir
|
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 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i fix it with new component in cell