PublicURL is used to access your local path to aragonUI’s assets (e.g. fonts, etc.), so they load properly. It is mostly used internally.
import { PublicUrl } from '@aragon/ui' function App() { return ( <PublicUrl> {url => ( <img src={`${url}/example.png`} /> )} </PublicUrl> ) }
Last updated 3 years ago
Was this helpful?