title: Add animated gifs to react web apps
body: <p>I'm trying to define a transition state for my react web application when I'm publishing data to backend.</p>
  
  <p>I want to show an animated gif in my render method.</p>
  
  <p>So I import the gif image (like this <a href="https://i.stack.imgur.com/ATB3o.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/ATB3o.gif" alt="enter image description here"></a><a href="https://media.giphy.com/media/3oEjI6SIIHBdRxXI40/giphy.gif" rel="noreferrer">https://media.giphy.com/media/3oEjI6SIIHBdRxXI40/giphy.gif</a> )</p>
  
  <p>using a simple import</p>
  
  <pre><code>import logo from '../assets/load.gif'
  </code></pre>
  
  <p>and add it to my render</p>
  
  <p>like:</p>
  
  <pre><code>&lt;img src={logo} alt="loading..." /&gt;
  </code></pre>
  
  <p>but I get an error in my react-dev server terminal</p>
  
  <p>unknown character</p>
  
  <p>How to add animated gif's to a plain react SPA.</p>