STR: * Add text with newlines, eg: ``` const text = '1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n 1\n ' <ClampLines className={this.state.cssClasses} text={this.text} /> ``` * Note that all the lines are collapsed into one line * Then add a CSS of `white-space: pre-wrap` * Note that newlines are preserved but no truncation occurs
STR:
white-space: pre-wrap