do NOT use next.js pages as components, they can NOT run hooks, instead create a component and...

Опубликовано: 11 Декабрь 2021
на канале: CoderDmitri
209
2

do NOT use next.js pages as components, they can NOT run hooks, instead create a component and... reference that component inside the Pages.

Pages are pretty much React Router Dom ROUTES... so just put the component into them, rather than the block of text.