New blog post – Kitten Kawaii: porting a React library and Next.js web site to Kitten
Small Web is the exact opposite of the Big Web. But what does that mean in practice? I wanted to find out by porting Elizabet Oliveira’s lovely React Kawaii app to Kitten. How does Kitten hold up to the frameworks of trillion-dollar and hundred-billion-dollar corporations?
(Spoiler: pretty darn well, actually.)
https://ar.al/2024/08/19/kitten-kawaii-porting-a-react-library-and-next-js-web-site-to-kitten/
@aral why does my history look like this after reading your blog? All I did was scroll, but it's impossible to get back to where I came from.
@gundersen Aha! Figured it out… it’s not the scrolling.
So the Kitten Kawaii web site is embedded in the blog post and the Kitten Kawaii web site maintains state in the URL. Of course, you can’t see its URL because it’s in an iframe but it is still adding its state to the history and, apparenty, that’s not a separate history for iframes.
Interesting…
You can see what I mean by hitting it directly in the browser:
https://kitten-kawaii.small-web.org
:)
@aral it should probably use replaceState so that the state updates but doesn't add to the history
@gundersen Ah, but I do enjoy being able to use the back and forward buttons to go back and forth…
It definitely doesn’t make sense when in an iframe though.