react-play icon indicating copy to clipboard operation
react-play copied to clipboard

Character Counter

Open IamAnkit19 opened this issue 1 week ago • 1 comments

this play provides a real-time interface for users to track character and word counts using react usestate and regex. it includes reading time estimation and a clear-all feature. fixes #1631

Before creating this PR, please confirm the following:


First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description

Added a new play called "Character Counter" that helps users track text length and reading time in real-time. This provides a simple utility for content creators.

Fixes # 1631

Type of change

  • [x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Manually tested on Chrome and Edge.

Verified word count logic with single and multiple spaces.

Verified that the "Clear All" button resets the state correctly.

Ran npm run lint and fixed all formatting errors.

Checklist:

  • [x] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

Screenshots or example output

Character Counter

IamAnkit19 avatar Dec 18 '25 15:12 IamAnkit19