ES2015에서 import로 이미지 불러오기
Interested in ReactJS, RxJS and ReasonML.
import * as url from '/PATH/TO/IMAGE/filename.extension';
// for example
// import * as logo from '../public/assets/images/logo.png';
/* Native DOM */
const image = document.createElement('img');
img.src = url.default;
/* JSX */
<img src={url.default} />