This file contains 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
const StyledButton = styled.button` | |
border: 2px solid green; | |
background-color: ${(props) => (props.variant !== "outline" ? "white" : "green")}; | |
color: ${(props) => (props.variant === "outline" ? "green" : "white")}; | |
padding: 15px 32px; | |
text-align: center; | |
text-decoration: none; | |
font-size: 16px; | |
cursor: pointer; |
This file contains 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 styled from "styled-components"; | |
const StyledButton = styled.button` | |
border: 2px solid green; | |
background-color: green; | |
color: white; | |
padding: 15px 32px; | |
text-align: center; | |
text-decoration: none; | |
font-size: 16px; |
This file contains 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
p { | |
font-size: 2rem; | |
} |
This file contains 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
p { | |
font-size: 1rem; | |
} |
This file contains 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
<p>I am paragraph</p> |
This file contains 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
const redux = require("redux"); | |
const createStore = redux.createStore; | |
// String constant | |
const BUY_COFFE = "BUY_COFFE"; | |
// Action creator function | |
const buyCoffe = () => { | |
return { | |
type: BUY_COFFE, |