3

enter image description here import logo from '../images/dizer.co.gif';

{this.state.showLoader ? <img src={logo} alt="loading..." /> : null}

Initially I have used CircularProgress Component for loader when i was working with CircularProgress it is working. But when I tried with GIF I am unable to load GIF I am not facing any error also.

May I know how to load GIF file in react.

user9883888
  • 389
  • 1
  • 8
  • 17
  • Possible duplicate of [Add animated gifs to react web apps](https://stackoverflow.com/questions/44371716/add-animated-gifs-to-react-web-apps) – Hemadri Dasari Sep 20 '18 at 13:36
  • There is nothing wrong in your code but still few things I want to let you know. Check whether the log path is correct and check showLoader becomes true or not. These are the two things you need to check apart from it there is nothing else to look into your code – Hemadri Dasari Sep 20 '18 at 13:38
  • showloader is true. When i use CircularProgress Component It is working but when I use it is not working and Path also right. – user9883888 Sep 20 '18 at 13:43
  • @Think-Twice duplicate is same as my code also still not working. – user9883888 Sep 20 '18 at 13:46
  • Have you tried my inputs first? or share your full component code for better reception. You must be doing something wrong yourself then – Hemadri Dasari Sep 20 '18 at 13:51
  • no, I have edited the Question, path which i have given is right but it is showing like above – user9883888 Sep 20 '18 at 13:54
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/180457/discussion-between-user9883888-and-think-twice). – user9883888 Sep 20 '18 at 13:59
  • can anyone let me know? – user9883888 Sep 20 '18 at 16:23

0 Answers0