Skip to content

Conversation

@IamAnkit19
Copy link

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

  • 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:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • 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

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 reactplay#1631
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 reactplay#1631
@netlify
Copy link

netlify bot commented Dec 18, 2025

👷 Deploy request for reactplayio pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 8a41bb3

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! contributor, thank you for opening a Pull Request 🎉.

@reactplay/maintainers will review your submission soon and give you helpful feedback. If you're interested in continuing your contributions to open source and want to be a part of a welcoming and fantastic community, we invite you to join our ReactPlay Discord Community.
Show your support by starring ⭐ this repository. Thank you and we appreciate your contribution to open source!
Stale Marking : After 30 days of inactivity this issue/PR will be marked as stale issue/PR and it will be closed and locked in 7 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Add a Play]: Simple Character Counter

1 participant