π§ͺ Bye CodeSandbox, hello react-live
Quick one! The CodeSandbox embeds in a few of my articles started throwing Failed to execute 'importScripts' network errors, so instead of a demo you got a broken box, and since it was CodeSandbox's own servers failing there wasn't much I could do about it. react-live to the rescue!
What is it?
FormidableLabs/react-liveβ 4.6k- An open source library that takes a string of React code and renders it live on the page
- It runs the code right there in your browser, so there's no server sitting in the middle
- The editor is just the code with colours on, and you can type straight into it
It looks so slick now! Check it out below π
1import { useState } from 'react';2import './styles.css';34export default function App() {5 const [ollies, setOllies] = useState(0);6 const [inTheAir, setInTheAir] = useState(false);78 const ollie = () => {9 if (inTheAir) return;10 setInTheAir(true);11 setOllies((count) => count + 1);12 };1314 return (15 <div className="park">16 <span17 className={inTheAir ? 'board pop' : 'board'}18 onAnimationEnd={() => setInTheAir(false)}19 aria-hidden="true"20 >21 <span className="level">πΉ</span>22 </span>23 <div className="ground" />24 <button onClick={ollie}>Ollie!</button>25 <p>Ollies landed: {ollies}</p>26 </div>27 );28}
Loading the live demoβ¦
The benefits
- Slicker than an iframe π₯ it matches the rest of my site, with no CodeSandbox branding, double scrollbars or a whole second app loading inside the page
- Faster, it only loads when you scroll near it
- More accessible, with proper tabs and labels
- Runs on my own site, no third party
These articles are using it now:
Peace! βοΈ
Thanks for reading! Time for one more?
export const getStaticProps = async () => ({props: await getWhatsHappening(),revalidate: ONE_DAY,});
π ISR, the thing behind What's Happening
11 Oct 2026 β’ π 2 min readHow Incremental Static Regeneration keeps the What's Happening pages fresh without a server, plus the YouTube API, new feeds and the rest of the recent updates.
// Sketchy's journal, the whole DB// boils down to four tables and a// single sync expo-sqlite handle.const db = SQLite.openDatabaseSync('journal.db')
πΉ Sketchy - Skateboard Companion App
03 May 2026 β’ π 30 min readβοΈ Updated 04 Oct 2026Behind the scenes of Sketchy, a skate companion app built on Expo SDK 55, React Native 0.83, expo-sqlite, OpenStreetMap and EAS, with the New Architecture and React Compiler turned on.