wizzard0 / naked-preact

preact.js with hooks and ES2021, without compilers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

naked preact

preact.js with hooks, without compilers

Web development should be simple.

No compilers, just ES2021 and preact+hooks. See comments in the code.

The only downside is that it won't work with file:// URLs.

Various http servers you can use:

  • python3 -m http.server 7421
  • npx http-server -c-1 -p7421
  • dotnet tool install --global dotnet-serve; dotnet serve -p7421
  • view on GitHub Pages

...then open http://localhost:7421/ in your browser and play with app.js/index.html etc.

Oh, and don't forget Preact Devtools. They work out of the box.

About

preact.js with hooks and ES2021, without compilers

License:MIT License


Languages

Language:JavaScript 99.0%Language:HTML 0.6%Language:CSS 0.4%