highlight-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.13 • Public • Published

highlight-react

quickstart

Installation

npm i highlighter-react

#or

yarn add highlighter-react

How to use

import Highlight from 'highlight-react/dist/highlight'

const Demo = () => {
  const searchTerm = 'hello';

  return (
    <Highlight search={searchTerm}>
      <div>
        <h1>Hello world!</h1>
      </div>
    </Highlight>
  );
};

export default Demo;

Captura de Pantalla 2022-04-04 a las 15 56 16

/highlight-react/

    Package Sidebar

    Install

    npm i highlight-react

    Weekly Downloads

    71

    Version

    0.1.13

    License

    MIT

    Unpacked Size

    5.58 kB

    Total Files

    6

    Last publish

    Collaborators

    • vladickweb