SHARE
TWEET

Untitled

a guest Oct 10th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Presentational Component
  2. // contains only the UI and has a clear UI (props) for testing
  3.  
  4. import React from "react";
  5. import Loader from "../Loader";
  6.  
  7. const Button = ({ onFocus, onBlur, hasLoader, label }) => (
  8.   <button type="button" onFocus={onFocus} onBlur={onBlur}>
  9.     {hasLoader ? <Loader /> : label}
  10.   </button>
  11. );
  12.  
  13. export default Button;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top