Implementing a character counter in React
December 22, 2022CHALLENGE: set character limit for text area and display current count SOLUTION: handle the onChange event, use a Bootstrap badge to display the results Sometimes we want to restrict the number of characters that can be written in text input or text area. One solution is to use the HTML5 attribute for form elements, like maxlength. For […]
Continue reading