Created
May 30, 2022 20:43
-
-
Save Lahirutech/c8b79bcfaa13b67a9c3c673bfb80e6f6 to your computer and use it in GitHub Desktop.
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'; | |
| // importing the library | |
| import styled from 'styled-components'; | |
| // defining the styles | |
| const AddButton = styled.button` | |
| margin: 40px; | |
| border: 5px black; | |
| `; | |
| const ButtonCnt = styled.p` | |
| font-size: 16px; | |
| text-align: center; | |
| `; | |
| const Cart = () => ( | |
| <AddButton> | |
| <ButtonCnt> Styling React Components </ButtonCnt> | |
| </AddButton> | |
| ); | |
| export default Cart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment