I'm not sure I agree in the least with using a GIF image for this in React. There are a *LOT* of spinner components in npm that will use SVG (smaller than animated GIF) with enough CSS for the animation itself. The overall effect will usually be smoother, and every remotely modern browser (even IE 10) supports this without issue.
https://caniuse.com/#feat=css-animation