Gatsby & WordPress - 3.6. - Styled Components

by Jack Pritchard

Hey! This post's a little over two years old now, so some of what's here might be out of date. Still worth a read, but if anything really matters to you, it's worth double-checking against a newer source too.

In this episode, we look at the Styled Components NPM package and why they are of benefit to implementing in our React application.

We also take an example of a Hero component, looking at how we can use the ACF fields in our WordPress environment to dynamically set the background colour used in our Hero overlay.