Dear Friends,
this is superb library.But i am struggling to inline my static images. Can u please guide me the way.
Regards
gmchaturvedi
Choose one: is this a 馃悰 bug report or 馃檵 feature request?
{
"your": { "config": "here" }
}
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel |
| Node |
| npm/Yarn |
| Operating System |
Please fill in the issue form
im simply require('./logo.png') but it si not working as its work in webpack and others .KIndly suggest us the best way to use images of local folders.
The following code should work, i'm just guessing what ur specific use case is though. This is just a basic JSX example
const someImage = require('./someImage.jpeg');
render() {
return <img src={someImage} />
}
thanks its working
Most helpful comment
The following code should work, i'm just guessing what ur specific use case is though. This is just a basic JSX example