An exploration of a quick project setup using preact and htm. This combination allows skipping any bundlers and build steps, so it represents 'plug & play' kind of approach.
The exploration contains:
- an implementation of a
Slider
component, fully responsive and with various levels of accessibility features, such as VoiceOver capabilities and tabbing flow - few tryout hooks leveraging
Proxy
constructor, such asuseState
anduseEffect
, exploring the limits of state change detection - an implementation of
useImageTheme
hook for extracting a dominant color theme from an image, used by theSlider
component - a tryout implementation of a
ResponsiveImage
component for generatingpicture
sources based onsrcset
as well aswebp
type of images