Closed kachkaev closed 6 years ago
@helior would you be happy to release a new patch version if I submit a PR?
Hi @kachkaev, I'm glad to hear you were up in running so quickly 👍 . This is a great idea to define components for the matching element. If you have a PR, I would be happy to release a version with the new feature.
Here you go: #56 🙌
Looking forward for a new patch release (I don't think we are adding a feature) 😉
Hi @helior and many thanks for your library! With
react-highlighter
I got from zero to all done in just 10 minutes, which is mind-blowing even in the React world!I'm writing to share a minor issue I've faced when using
<Highlight />
together withstyled-components
. Here's my code:This produces a warning in development environment:
It'd be great if
matchElement
in PropTypes allowed using custom react components in addition to strings. The issue is only with the warning – all working great apart from that 🎉