let src : string = [%raw "require('./img/img.png')"];
let component = ReasonReact.statelessComponent("Header");
let make = (_children) => {
...component,
render: self =>
<div>
<img src=(src) />
</div>,
};
the code works but it would be great if I can do the first line without using [%raw "..."]
I’ve tried to look for that information and unfortunately, I couldn’t find any yet.
Does any know how to do it?
FYI, also How to import svg file? didn’t work for me