0

I just came into this code (styled-components library)

const Button = styled.button`
  background: transparent;
  border-radius: 3px;
  border: 2px solid palevioletred;
  color: palevioletred;
  margin: 0 1em;
  padding: 0.25em 1em;
`

it seems that styled.button is a function but what is the use of the backtick here?

Ali Faris
  • 17,754
  • 10
  • 45
  • 70

0 Answers0