CSS Evolution: From CSS, SASS, BEM, CSS Modules to Styled Components
Perezpriego
1.8K31

import React from “react”
import styled from “styled-components”
// Simple form component
const Input = styled.button`
background: green
`
const FormWrapper = () => <Input placeholder=”hola” />
// What this compiles to:
<input placeholder=”hola” class=”dxLjPX”>Send</input>```

I think this complies to button not input. Actually you should change styled.button to styled.input in your case