How to change the whole background color of component in React App

Ask A Question

Login To post a question

I am developing React-app, I am facing a problem with setting the background color for Component,
I want to add background color for a particular Component but when I add background color in that particular Component CSS file whole app background color changes.

Index.js -> Index.CSS ->

  background-color: white;

Component.js -> Component.CSS ->

  background-color: grey;

I want to change the background-color for .body tag for a particular component without changing whole app background-color

For more info please click here

Have a question or need a custom quote?