react-center-tag Center your react component, the wrong way! installation $ yarn add react-center-tag usage import React from 'react'; import Center from 'react-center'; class MyComponent extends React.Component { render() { return ( <Center>{this.props.children}</Center> ) } }