Created
April 7, 2018 07:32
-
-
Save EdsonAlcala/fa0e8053890374fa719ab2d37434ab18 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 from 'react'; | |
| import './layout.css'; | |
| import { Container, Grid, Header } from 'semantic-ui-react'; | |
| function withLayout(WrappedComponent) { | |
| return class extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { | |
| return ( | |
| <Container> | |
| <Header as="h1" textAlign='center'>Voting System</Header> | |
| <WrappedComponent {...this.props} /> | |
| </Container> | |
| ) | |
| } | |
| } | |
| } | |
| export default withLayout; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment