styled-component 작동방식
https://medium.com/styled-components/how-styled-components-works-618a69970421
- DOM에
<style> tag
를 추가한다. appendChild
를 사용하여style node
를 추가한다.textContent
나innerHTML
을 추가하여 스타일시트를 업데이트한다.
https://medium.com/styled-components/how-styled-components-works-618a69970421
<style> tag
를 추가한다.appendChild
를 사용하여 style node
를 추가한다.textContent
나 innerHTML
을 추가하여 스타일시트를 업데이트한다.