ggoodman / nostalgie

Nostalgie is an opinionated, full-stack, runtime-agnostic framework for building web apps and web pages using react.
https://nostalgie.dev
MIT License
151 stars 6 forks source link

Explore a first-class image component #27

Open ggoodman opened 3 years ago

ggoodman commented 3 years ago

Different SSG and hybrid frameworks like Next.js and Gatsby have first-class support for images. This comes as no surprise when you dive into the complexities of serving images well on a modern browser.

Let's explore bringing a first class image concept to Nostalgie. I think that the code: imports sets an interesting precedent for this feature; with a special import syntax you are able to import an ESM whose default export is a React component with special, compile-time work.

We should: