Assets
Assets Management
This guide explains how to handle assets (images, SVGs, videos) in your application. Adding Assets
Place your asset files in the following directory: web/frontend/src/assets
Importing Assets
Export your assets from an index file:
// In src/assets/index.js
export { default as notFoundImage } from "./images/empty-state.svg"
Using Assets
Import and use assets in your components:
// In your component file
import { notFoundImage } from "../assets"
function MyComponent() {
return <img src={notFoundImage} alt="Not Found" />
}