Gatsby
Up and Running with Gatsby: Styling

Assignment: Styled Components

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

We've looked at how to use styled-components and created a Container component in our layout. Now let's do an assignment to give you some extra practice.

Create a button in the About page using Styled Components. Push yourself here: add a conditional to change the styling if a primary prop is detected. Read the docs to learn more and check out the Styled Components homepage to see an example.

 

I finished! On to the next chapter