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
To learn more, check the article on Smashing Magazine
Code | Page | Description |
---|---|---|
source | index | gets state from API and sets it to MainLayout |
source | stateless | uses DefaultLayout and does not have state |
source | pokemon | gets state from /index page through MainLayout |
state
Your Pokemon is: mienshao
