title: How set custom css styles in React?
body: <p>I try to position my <code>Grid</code> <code>Material-UI</code> component, without any success, what is wrong here?</p>
  
  <pre><code>class Scene extends React.Component {
    render() {
      const mystyle = {
          backgroundColor: "DodgerBlue",
          position: "absolute",
          top: "125px",
          left: "125px",
          width: "100px",
          height: "100px"
      };
  
      return (
        &lt;div className={mystyle}&gt;
        &lt;Grid container&gt;
          &lt;Grid item xs="2"&gt;
            &lt;Board init={1} end={2}/&gt;
          &lt;/Grid&gt;
        &lt;/Grid&gt;
        &lt;/div&gt;
      );
    }
  }
  export default Scene;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2FdDX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2FdDX.png" alt="enter image description here"></a></p>