1.0.0 • Published 4 years ago
react-words-highlight v1.0.0
react-words-highlight
Tiny React component for highlight words in text
Install
npm install --save react-words-highlight
Usage
import React, { Component } from 'react'
import { WordsHighlight } from 'react-words-highlight'
class Example extends Component {
render() {
return (
<WordsHighlight
text="Some text to highlight"
query="text highlight"
highlightTag="strong"
highlightClassName="my-class"
/>
);
}
}
License
MIT © vitalybaev
1.0.0
4 years ago