Skip to content

Instantly share code, notes, and snippets.

@gjorgiev
Created January 26, 2021 21:39
Show Gist options
  • Save gjorgiev/3855d7ab53ab61a9d29a12cdea685d13 to your computer and use it in GitHub Desktop.
Save gjorgiev/3855d7ab53ab61a9d29a12cdea685d13 to your computer and use it in GitHub Desktop.
Display Component
.Display {
display: flex;
justify-content: flex-end;
align-items: center;
background: #2b293d;
height: 20%;
color: #80c9c9;
font-size: 24px;
}
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