Go ProSign in

Style the body element with styled-components and "injectGlobal"

In this lesson, we see how we can apply styles globally with the "injectGlobal" helper method in styled-components. This method allows us to apply styles on the body element, which cannot be wrapped in a styled-component.

You must be a Member to view code