A demo project I set up to demonstrate the differences in React + Next and Svelte + Sapper for a knowledge share session at work
Since I haven't set this up as a full-fledged monorepo with something like lerna
, you'll have to install the dependencies for the respective apps in one of two ways. Either run npm run superinstall
from the root directory or cd
into both of the react
and svelte
folders and npm install
npm run dev:react
cd react
and then run npm run dev
npm run dev:svelte
cd svelte
and then run npm run dev
FloatingBox
to show how Svelte handles children, briefly show fallback slot
, then add a temporary child (we'll come back to this after we have the data on the page)GameItem
to render it, showing how to "expose" props and prop shorthandonMount
lifecycle method to pull in the full list of games, showing in the console that we have themeach
block to loop and render each of the gamesfor
to label at first to show a11y hintingvisibleGames
to show reactive variablesif
/else
block to conditionally handle when there are no visible gamesField
component?