Skip to content

Instantly share code, notes, and snippets.

@Lahirutech
Created May 30, 2022 20:43
Show Gist options
  • Select an option

  • Save Lahirutech/c8b79bcfaa13b67a9c3c673bfb80e6f6 to your computer and use it in GitHub Desktop.

Select an option

Save Lahirutech/c8b79bcfaa13b67a9c3c673bfb80e6f6 to your computer and use it in GitHub Desktop.
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