Reactjs – NextJS – How to pass an event from a component in layout to a page?
I have a multi-step form (react-hook-form) in Next.js. The onSubmit() event lives in a component called from the layout, and I'd like to be able to add a spinner and disable the submit button. How can I know on the…