-
Notifications
You must be signed in to change notification settings - Fork 36
Preact
Peter Mouland edited this page Oct 14, 2016
·
3 revisions
https://github.com/peter-mouland/react-lego/compare/master...preact
Switching to Preact was a task out of curiosity. The switch itself was very simple with only a couple of package switches.
Preact-router was subbed in for react-router and it actually feels more like the upcoming v4 in that it makes more use of JSX instead of a traditional JS API.
The client-side only app,
- using React, comes in at 258kb (73.12KB gzipped);
- using Preact, comes in at 76kb (21.96KB gzipped).
Preact reduced the code by 70%. nice.