Skip to content

Instantly share code, notes, and snippets.

@EdsonAlcala
Created April 7, 2018 07:32
Show Gist options
  • Select an option

  • Save EdsonAlcala/fa0e8053890374fa719ab2d37434ab18 to your computer and use it in GitHub Desktop.

Select an option

Save EdsonAlcala/fa0e8053890374fa719ab2d37434ab18 to your computer and use it in GitHub Desktop.
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