Last active
January 30, 2017 19:22
-
-
Save EliasJorgensen/6716bec349d218c2d6fece0661d4dff7 to your computer and use it in GitHub Desktop.
React <Center> Component
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' | |
| // Bootstrap centering solution from https://stackoverflow.com/questions/18153234/center-a-column-using-twitter-bootstrap-3 | |
| const Center = (props) => ({ | |
| <div className='row'> | |
| <div className='col-md-2 col-md-offset-5'> | |
| {props.children} | |
| </div> | |
| </div> | |
| }) | |
| export default Center |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment