
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 02, 2020 10:22 PM
I have my logo.jpg image inside frontend folder of my helloworld app. I tried to call the image but nothing is being displayed.
import {
initializeBlock,
useBase,
useRecords,
} from '@airtable/blocks/ui';
import React, { useState } from 'react';
function HelloWorldBlock() {
// YOUR CODE GOES HERE
return <div>Hello world 🚀<img src={'./logo.jpg'} /> <img src='./logo.jpg' /></div>;
}
initializeBlock(() => <HelloWorldBlock />);
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 05, 2020 01:01 PM
It doesn’t look like their build process copies static assets across. Until they do or mention how to, you can use data URI to inject the image.
const logo = ' data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcQAAA...';
<img src={logo} />

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 05, 2020 01:01 PM
It doesn’t look like their build process copies static assets across. Until they do or mention how to, you can use data URI to inject the image.
const logo = ' data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcQAAA...';
<img src={logo} />

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 07, 2020 01:39 PM
Thank you so much for the hint
