Skip to content

Instantly share code, notes, and snippets.

@jscodelover
Last active January 10, 2020 10:41
Show Gist options
  • Select an option

  • Save jscodelover/ba8ba40e8462de6adf19e84819c43846 to your computer and use it in GitHub Desktop.

Select an option

Save jscodelover/ba8ba40e8462de6adf19e84819c43846 to your computer and use it in GitHub Desktop.

Revisions

  1. jscodelover revised this gist Jan 10, 2020. No changes.
  2. jscodelover created this gist Dec 27, 2019.
    12 changes: 12 additions & 0 deletions styled component
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    /* css */
    .header {
    background: #453434; /* overrided */
    }

    // JSX
    <Div className="header sc-wS45d" />

    const Div = styled.div`
    &&& {
    background: white; /* applied */
    }