react-text-highlighter
Version:
Simple higher order component for React for text highlighting. Works nicely with React 0.14+ and stateless components
20 lines (17 loc) • 339 B
JavaScript
/* eslint-disable */
import React, {Component} from 'react'
const getComponent = () => {
return class extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
}
render() {
return (
<div>{this.props.highlightedText}</div>
);
}
}
}
export default getComponent;