It would be a different demo, but this could be made fairly modern with some lightweight tooling and dependencies:
- Use esbuild to bundle the app.
- Now you can change the file extension and switch to Typescript. (Esbuild doesn't check the types, but VS Code will.)
- Then change the file extension to tsx and use Preact.
I'm writing a little app this way and it seems quite nice. I don't think I'm missing anything?
Agreed, esbuild is nice. And adding TypeScript at some type of scale probably makes sense. Not sure where that line is, but in this simple example I’m trying to avoid all external tools.
- Use esbuild to bundle the app. - Now you can change the file extension and switch to Typescript. (Esbuild doesn't check the types, but VS Code will.) - Then change the file extension to tsx and use Preact.
I'm writing a little app this way and it seems quite nice. I don't think I'm missing anything?