SHARE
TWEET

Untitled

a guest Dec 11th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import './index.css';
  3.  
  4. const Icons = props => {
  5.   const iconProps = [
  6.     {
  7.       id: 1,
  8.       title: 'PiggyBank1',
  9.       text: 'Texto de teste1',
  10.     },
  11.     {
  12.       id: 2,
  13.       title: 'PiggyBank2',
  14.       text: 'texto2'
  15.     }
  16.   ];
  17.  
  18.   return(
  19.     <div className="icons-wrapper">
  20.       <div className="icons-img">
  21.         <img src={props.image} alt="icon"></img>
  22.       </div>
  23.       <div className="icons-text">
  24.         <h2>{props.title}</h2>
  25.         <p>
  26.           {props.text}
  27.         </p>
  28.       </div>
  29.     </div>
  30.   );
  31. }
  32.  
  33. export default Icons;
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top