title: how we can add style tag on a div in react
body: <p>I am working in React. Now I want to add some new functionality of dark mode and night mode. I want to add some style on a div but It gives some problems. the code of div style is :</p>
  <pre><code>&lt;div className=&quot;container&quot; style={`{backgroundColor : + ${props.mode === &quot;light&quot; ?&quot;white&quot; : &quot;black&quot;}}`}&gt;
  </code></pre>
  <p>now anyone can give the concept that how I can use the style tag for a div.</p>