Created
November 26, 2023 19:40
-
-
Save MateuszBattek/817e085dddfb09f68414042399c8627a to your computer and use it in GitHub Desktop.
Simple React container with 3 rows
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
| .container { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100vh; | |
| } | |
| .row { | |
| flex: 1; | |
| border: 1px solid #ddd; | |
| padding: 20px; | |
| margin: 5px; | |
| } |
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'; | |
| 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