helior / react-highlighter

:high_brightness: Highlight text using React
MIT License
157 stars 42 forks source link

Cannot apply unknown props to html elements. #32

Closed canfie1d closed 8 years ago

canfie1d commented 8 years ago

In React 15.1.0 I am getting this warning in the console:

Warning: Unknown propssearch,caseSensitive,matchElement,matchClass,matchStyleon <span> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop

This occurs from applying non standard props to an HTML element. i.e. <span search='string'>.

Thanks for your work on this project. 🙇

helior commented 8 years ago

Hey @canfie1d https://github.com/helior/react-highlighter/pull/30 should resolve your issue.

canfie1d commented 8 years ago

Thanks!