>1: Anything in getServerSideProps or getInitialProps runs on the server-side. These functions are used for server-side rendering. They are run on the server when a request is made to the page.
>2: Anything in getStaticProps or getStaticPaths also runs on the server-side. These functions are used for static generation. They are run at build time on the server.
>3: Any other code in your React components, outside the above functions, will run on both server and client side.
>4: Code in useEffect hooks runs on the client-side only.
>5: Code in event handlers (like onClick, onSubmit, etc.) runs on the client-side only.