imbhargav5 / rooks

Essential React custom hooks ⚓ to super charge your components!
https://rooks.vercel.app
MIT License
3.19k stars 216 forks source link

Search and highlight word in the DOM #1726

Closed Amin-Partovi closed 1 year ago

Amin-Partovi commented 1 year ago

This PR introduces a new hook called useHighlight. The useHighlight hook accepts two arguments: keyword (the word we want to search for) and isReady (a boolean argument indicating whether the search should be performed). It returns a ref that should be assigned to the container element we want to search within. I am ready to receive your feedback and address any comments you may have on my PR. Your time and consideration are greatly appreciated.

codesandbox[bot] commented 1 year ago

This branch is running in CodeSandbox. Use the links below to review this PR faster.
CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

vercel[bot] commented 1 year ago

@Amin-Partovi is attempting to deploy a commit to the Rooks Team on Vercel.

A member of the Team first needs to authorize it.

Amin-Partovi commented 1 year ago

@imbhargav5 Hi Bhargav,

I hope you're doing well. I have addressed the comments you provided, and I was wondering if you could find some time to review my PR. I'm open to fixing any issues you mentioned and making any necessary adjustments.

Thank you for your time and consideration

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.