skip to Main Content

Javascript – How to get POST data for next.js?

I am writing a form validation program using the App Router in Next.js. // app/register/page.tsx export default function Register(context: any) { console.log("Register page", context.params, context.searchParams); return ( <form method={'POST'} action={'/register'} > <input name="usr"/> <input name="pwd"/> <button type={'submit'}>Submit</button> </form> ); }…

VIEW QUESTION

Next.js Fonts and CSS vars

I am trying to use the "next" way of adding fonts. However I feel like the way they explain it seems extremely complicated just to preload a font. I tried to export a function creating the font and then using…

VIEW QUESTION
Back To Top
Search