Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- class Card extends Component {
- render() {
- return (
- <div className = "Card">
- <div style= {{backgroundColor : this.props.color}}className = "Card__title-container">
- <h6 className = "Card__title">
- {this.props.title}
- </h6>
- </div>
- <div className = "Card__text-container">
- <p className ="Card__text">
- {this.props.text}
- </p>
- </div>
- </div>
- );
- }
- }
- export default Card;
Add Comment
Please, Sign In to add comment