loader.js 272 B

123456789
  1. import React from "react";
  2. export default ({ children, flag }) => (
  3. flag ?
  4. <div className = "loader-box">
  5. <img className = "loader" src="../images/loader.gif" alt="Loading"/>
  6. {/* <p> Loading... </p> */}
  7. </div>
  8. : children);