No-Build, Minimal-Dependency Webapps with Preact

Опубликовано: 26 Июнь 2026
на канале: CodingItWrong
5,575
92

The NPM package security incident this week may have you wondering, is there any way to escape installing thousands of mysterious packages? Do we have to go back to manipulating the DOM by hand?


Well, no! Let's try creating a zero-build-step, zero-transitive dependency frontend app using Preact and related libraries. We won't need any build process, but we'll have components, a state store, and .render functions that look a lot like JSX. You'll be amazed how much it feels like React!