scrimba
Styled Components
Extended Styles in real life examples - Project work
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Extended Styles in real life examples - Project work
AboutCommentsNotes
Extended Styles in real life examples - Project work
Expand for more info
index.js
run
preview
console
import React from 'react'
import ReactDOM from 'react-dom'
import styled from 'styled-components'
import Section from './components/Section'

const Title = styled.h1`
color: #b19cd9;
`

class Main extends React.Component {
render() {
return (
<>
<Title>Progress Tracker</Title>
<div>
<Section text='M'/>
<Section text='T'/>
<Section text='W'/>
<Section text='T'/>
<Section text='F'/>
<Section text='S'/>
<Section text='S'/>
</div>
</>
);
}
}

ReactDOM.render(<Main />, document.getElementById('root'))


//TO DO:
// extend the WeekdayTitle component to make a WeekendTitle component
// use the WeekendTitle if the text prop is an 'S'
Console
/index.html
-5:34