impress-2020/pages
Matchu 17a7e2de81 [WIP] Refactor to renderWithLayout function
Okay, when I saw the recipe in the Next.js docs with `getLayout`, I was like "psh this API is so confusing, this should just be a component"

anyway now we see why it wasn't a component: the _whole point_ of it was to circumvent the usual React diffing algorithm's belief that two different components _can't_ ever share UI. But here we were, making different `layoutComponent`s that were meant to share UI, lol!

Anyway, if you just _return JSX in a function_, the React diffing algorithm never sees that it came from a different place, so it's generous when diffing them. Neat!

But I still changed the recipe's `getLayout` name to `renderWithLayout`, because it just confused me so much at first lol, I thought it was going to like, return a layout function? This is much clearer verbing to me imo
2022-09-14 22:50:56 -07:00
..
api Use latest ~owls NC trade values API 2022-09-04 01:35:05 -07:00
internal [WIP] Refactor to renderWithLayout function 2022-09-14 22:50:56 -07:00
items [WIP] Refactor to renderWithLayout function 2022-09-14 22:50:56 -07:00
outfits Oops I broke the wardrobe page lmao! 2022-09-14 19:44:38 -07:00
support Migrate /support/petAppearances to Next.js routing 2022-09-14 19:46:57 -07:00
[[...slug]].tsx [WIP] Refactor to renderWithLayout function 2022-09-14 22:50:56 -07:00
_app.tsx [WIP] Refactor to renderWithLayout function 2022-09-14 22:50:56 -07:00
_document.tsx Simplify references to PUBLIC_URL 2022-09-14 18:44:43 -07:00
conversion.tsx [WIP] Migrate the conversion page 2022-09-14 19:20:49 -07:00
modeling.tsx [WIP] Migrate /modeling to Next.js routing 2022-09-14 19:52:10 -07:00
privacy.tsx [WIP] Move Privacy Policy onto its own Next.js page 2022-09-14 19:16:26 -07:00
your-outfits.tsx [WIP] Migrate /your-outfits to Next.js routing 2022-09-14 21:55:03 -07:00