title: Failed prop type: The prop justify of Grid must be used on container
body: <p><img src="https://i.stack.imgur.com/8wCoi.png" alt="enter image description here" /></p>
  <p>I got the error while using Material-UI in react</p>
  <pre><code>&lt;Grid container justify=&quot;center&quot;&gt;
    &lt;Box className={classes.box}&gt;
      &lt;Grid item className={classes.item1}&gt;
        &lt;Typography variant=&quot;h5&quot; className={classes.loginTitle}&gt;
          Login
        &lt;/Typography&gt;
        &lt;Typography variant=&quot;body1&quot; className={classes.subTitle}&gt;
          to continue to Program
        &lt;/Typography&gt;
      &lt;/Grid&gt;
  
      {renderForm(window.location.pathname)}
  
      &lt;Grid
        item
        className={classes.component}
        alignItems=&quot;center&quot;
        justify=&quot;space-between&quot;
      &gt;
        &lt;Typography
          variant=&quot;body2&quot;
          color=&quot;primary&quot;
          className={classes.createAccountLink}
        &gt;
          &lt;Link
            style={{ cursor: &quot;pointer&quot; }}
            onClick={(e) =&gt; e.preventDefault()}
          &gt;
            Create account
          &lt;/Link&gt;
        &lt;/Typography&gt;
  
        &lt;Button
          variant=&quot;contained&quot;
          color=&quot;primary&quot;
          disableElevation
          className={classes.btn}
        &gt;
          Login
        &lt;/Button&gt;
      &lt;/Grid&gt;
  </code></pre>