react place div at center of page
snippet in javascript

react place div at center of page

user4686

<div style={{display: 'flex',  justifyContent:'center', alignItems:'center', height: '100vh'}}>
    <h1> I am centered </h1>
</div>