JSFiddle - React, Tailwind, and code Playground
HTML
<p>The test passes if the text below <strong>does not</strong> extend outside of the box.</p>
<div>Thisisaverylongstringoffillertextwithoutspaces.</div>
CSS
p {
margin: 1em 0;
}
div {
border: solid 2px blue;
width: 10em;
word-wrap: break-word;
}