How do you add an image in a widget


I am trying to add an image to a new widget extension I am creating. I used yo theia-extension to create the initial workspaces. I created a new folder images in src/browser where I stored a few images. I am trying to add a tag inside the render function but I am not able to access the images in the images folder.

[original thread by Siddhant Agrawal]

It should be the same as for plain React app. Something like what described here:

given that your webpack configuration can load such resources