Check out example codes for "text limit in css". It will help you in understanding the concepts better.

Code Example 1

body {
   margin: 20px;
}

.text {
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
   -webkit-box-orient: vertical;
}

Code Example 2

/*CSS to limit the text length inside a div*/
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;

Code Example 3

div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

Learn ReactJs, React Native from akashmittal.com