adding pre tag javascript

JavaScript
<Card>
  <CardHeader title="Output" />
  <CardContent>
    <pre style={{ backgroundColor: "white" }}>{JSON.stringify(values, null, 2)}</pre>
  </CardContent>
</Card>
Source

Also in JavaScript: