Answers for "how to center a react component on the page"

1

react place div at center of page

<div style={{display: 'flex',  justifyContent:'center', alignItems:'center', height: '100vh'}}>
    <h1> I am centered </h1>
</div>
Posted by: Guest on October-14-2020

Code answers related to "how to center a react component on the page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language