I need to conver incoming string ' ' to img src attribute and pass it as prop to child component. How can I do that?
I tried this, but its not working.
`let blob = new Blob([data.payload], {type: 'image/svg+xml'});
let url = URL.createObjectURL(blob);
const image = document.createElement('img');
image.addEventListener('load', () => URL.revokeObjectURL(url), {once: true});
image.src = url;`