Sertakan gif di React

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

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