Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using the provided example #48

Closed
sockol opened this issue Mar 29, 2018 · 1 comment
Closed

Error when using the provided example #48

sockol opened this issue Mar 29, 2018 · 1 comment

Comments

@sockol
Copy link

sockol commented Mar 29, 2018

My mistake - resolved by changing "searchWords" prop into an array

<Highlighter
highlightClassName='YourHighlightClass'
searchWords={['and', 'or', 'the']}
autoEscape={true}
textToHighlight="The dog is chasing the cat. Or perhaps they're just playing?"
/>

@bvaughn
Copy link
Owner

bvaughn commented Mar 29, 2018

Must be. Works fine for me: https://codesandbox.io/s/5v8yqoxv7k

I'm afraid I can't help with the limited info provided.

@bvaughn bvaughn closed this as completed Mar 29, 2018
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

No branches or pull requests

2 participants