Hi all
I tried to import svg as following .
[%%raw {|import '../styles/navbulk.css'|}];
[%%raw {|import logo from '../images/logo.svg'|}];
let component = ReasonReact.statelessComponent("NavBulkView");
let setSectionRef = (theRef, _) => {
let d: option(Dom.element) = Js.Nullable.toOption(theRef);
switch d {
| None => Js.log("Nothing")
| Some(a) =>
Js.log(ElementRe.innerText(a));
};
};
let make = (_children) => {
...component,
render: _self => {
<nav className="navbar fixed-top navbar-light nav-bulk">
<a className="navbar-brand" href="#">
<img src={logo} width="30" height="30" alt="" />
</a>
</nav>
}
};
the problem is here <img src={logo} width="30" height="30" alt="" />
. What do I have to write instead of {logo}
?
Thanks