Layout State

This is a proof-of-concept (PoC).

The app is intentionally over-engineered to exemplify how to omit state from different pages in a Next.js application

CodePageDescription
sourceindexgets state from API and sets it to MainLayout
sourcestatelessuses DefaultLayout and does not have state
sourcepokemongets state from /index page through MainLayout