Created
          July 12, 2021 23:46 
        
      - 
      
- 
        Save jonasantonelli/e4b55af08c0e7e1a7ebfc59b16073212 to your computer and use it in GitHub Desktop. 
    Styled Component - Referring to other components
  
        
  
    
      This file contains hidden or 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 Item = styled.li` | |
| color: cadetblue; | |
| `; | |
| const UnorderedList = styled.ul` | |
| list-style: none; | |
| ${Item} { | |
| margin-bottom: 7px; | |
| } | |
| `; | |
| export default () => ( | |
| <UnorderedList> | |
| <Item>...</Item> | |
| <Item>...</Item> | |
| </UnorderedList> | |
| ) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment