~dannyfreeman/preact-reagent-demo

None
e25b2cf1 — Danny Freeman 3 years ago
Adjust spacing on readme
ee227921 — Danny Freeman 3 years ago
Add build report analysis table to readme
8214a0ad — Danny Freeman 3 years ago
Add branch links to README

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~dannyfreeman/preact-reagent-demo
read/write
git@git.sr.ht:~dannyfreeman/preact-reagent-demo

You can also use your local clone with git send-email.

#Reagent + Preact Demo

This project is based on the https://github.com/shadow-cljs/quickstart-browser project.

It is intended to demonstrate how a shadow-cljs project can use reagent with preact.

There are two branches, main and preact.

main contains the bare minium configuration for running reagent with react. preact contains the bare minimum configuration running reagent with preact.

On either branch you can see this in action by running

npm i
npm run build:watch

Compare the build output report by running this on both branches

npm run build:report

#Branches

Browse the react branch

Browse the preact branch

#Reports

Uncompressed, Optimized JS Gzip, Optmized JS
react 271.29 KB 75.02 KB
preact 163.03 KB 40.61 KB
-------- ---------------------------- -------------------
diff 108.26 KB 34.41 KB
Do not follow this link