Question · JavaScript and React course · Module 14: Advanced Styling

createGlobalStyle in styled-components

What is createGlobalStyle used for in styled-components?

Answer options

  • To create a global Redux store for styles
  • To generate a global Webpack configuration object
  • To create global JavaScript variables accessible throughout the application
  • To define global CSS styles with access to the theme

You can check the correct answer by solving this task in the CodeWorlds game.