-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Question: How should we handle dynamically importing in a directory of images?
Eg. This first one would fail, where the second one would succeed.
const stuff = "tree.jpg";
const stuff2 = "?sizes=375";
return (<Picture
src={[
require(`../assets/images/${stuff}${stuff2}`),
require(`../assets/images/${stuff}`),
]}
breakpoints={[768]}
/>)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels