react-markify

0.1.2 • Public • Published

react-markify

React component to highlight words.

Most of the codes are borrowed from react-linkify.

Installation

$ npm install react-markify

Usage

Any target word that appears inside the Markify component will become highlighted.

<Markify targetWord="JavaScript">
  <span>React is a JavaScript library for building user interfaces.</span>
</Markify>

Package Sidebar

Install

npm i react-markify

Weekly Downloads

9

Version

0.1.2

License

MIT

Last publish

Collaborators

  • enu-kuro