Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reactjs limit text display 20 200 characters

<div>
  {`${text.substring(0, MAX_LENGTH)}...`}<a href="#">Read more</a>
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reactjs #limit #text #display #characters
ADD COMMENT
Topic
Name
1+2 =