You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the /secret-sandwich branch I'm working on a post written in MDX, that includes a React component.
The component is a <LinkCard /> that takes a title, url, and an image as props.
The images I want to add to the cards are in the same folder as the MDX file. When I try to pass them as <LinkCard img="./ety.png" /> they show up broken.
TLDR; How do you pass an image url into a React Component within an MDX file?
Broken images:
Component in the MDX file:
The text was updated successfully, but these errors were encountered:
On the /secret-sandwich branch I'm working on a post written in MDX, that includes a React component.
The component is a
<LinkCard />
that takes a title, url, and an image as props.The images I want to add to the cards are in the same folder as the MDX file. When I try to pass them as
<LinkCard img="./ety.png" />
they show up broken.TLDR; How do you pass an image url into a React Component within an MDX file?
Broken images:
Component in the MDX file:
The text was updated successfully, but these errors were encountered: