A simple, real-time character and word counter built with React. This play helps users analyze the length of their text and estimate reading time.
- Real-time Counting: Counts characters (including spaces) and words as you type.
- Accurate Word Logic: Uses Regex to ensure multiple spaces or new lines don't inflate the word count.
- Reading Time Estimation: Calculates the average time a human would take to read the text (based on 200 wpm).
- Clear Action: A one-click button to reset the text area.
- useState Hook: To manage the string state of the text input.
- Event Handling: Capturing
onChangeevents to trigger re-calculations. - Derived State: Calculating counts directly during the render for better performance.
- Type or paste your text into the provided text area.
- View the statistics updated instantly in the cards below.
- Click "Clear All" to start fresh.
Author: IamAnkit19