how to fix it?
Unanswered
Polar bear posted this in #help-forum
Polar bearOP
2 Replies
@Polar bear Click to see attachment
change from
to
function Component() {
const sendMessage = (...) => {
const router = useRouter();
router.push(...);
...
}
return ...
}to
function Component() {
const router = useRouter();
const sendMessage = (...) => {
router.push(...);
...
}
return ...
}Polar bearOP
thx!