Next.JS Newbie Lessons

  1. <Link href="/home"> all need to start with a /. If they do not, there will be a local/server synchronization error.
  2. Pay close attention to which arrow functions are strictly returns (which are wrapped in parenthesis) versus those that are not. Examples:

    Arrow function purely as a return:
    {poop.map(({ id }) => ( <>Poop { id }</> );

    Normal arrow function:
    {poop.map(({ id }) => { return <>Poop { id }</>; };