I use this repo to test out vanilla HTML & CSS (usually when I'm trying to understand some weird CSS thing). Run npx nodemon server.js
and navigate to localhost:3000 in your browser. Anytime you save a file in the repo the page will auto-refresh. I find this faster than online sandboxes and other methods (like livejs script tags).
You could add React to this, but I'd recommend instead just using Vite