include gif in react

JavaScript
import logo from '../assets/loader.gif';

<img src={logo} alt="loading..." />
Source

Also in JavaScript: