Created
January 26, 2021 21:39
-
-
Save gjorgiev/3855d7ab53ab61a9d29a12cdea685d13 to your computer and use it in GitHub Desktop.
Display Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Display { | |
display: flex; | |
justify-content: flex-end; | |
align-items: center; | |
background: #2b293d; | |
height: 20%; | |
color: #80c9c9; | |
font-size: 24px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import "./Display.css"; | |
class Display extends Component { | |
render(){ | |
return( | |
<div className="Display"> | |
{this.props.data} | |
</div> | |
); | |
} | |
} | |
export default Display; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment