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?"
/>
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?" />