Skip to content

Instantly share code, notes, and snippets.

@DSchau
Created November 12, 2019 00:20
Show Gist options
  • Save DSchau/319614ee9cd2c63da267bd10cb191c5b to your computer and use it in GitHub Desktop.
Save DSchau/319614ee9cd2c63da267bd10cb191c5b to your computer and use it in GitHub Desktop.
Plain ol' static images with Gatsby
import React from 'react'
import imgSrc from './assets/whatever.png'
export default () => (
<div>
<h1>Look below! A static image</h1>
<img src={imgSrc} /> {/* I'm a plain ol' static image */}
</div>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment