Skip to content

Instantly share code, notes, and snippets.

@MateuszBattek
Created November 26, 2023 19:40
Show Gist options
  • Select an option

  • Save MateuszBattek/817e085dddfb09f68414042399c8627a to your computer and use it in GitHub Desktop.

Select an option

Save MateuszBattek/817e085dddfb09f68414042399c8627a to your computer and use it in GitHub Desktop.
Simple React container with 3 rows
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.row {
flex: 1;
border: 1px solid #ddd;
padding: 20px;
margin: 5px;
}
import React from 'react';
import './MyContainer.css';
const MyContainer = () => {
return (
<div className="container">
<div className="row">Row 1</div>
<div className="row">Row 2</div>
<div className="row">Row 3</div>
</div>
);
};
export default MyContainer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment