react-mark.js
TypeScript icon, indicating that this package has built-in type declarations

9.0.7 • Public • Published

🍬 A React wrapper around the popular mark.js library.

⚡️ Quick Links

⚡️ Installation

The best way to install react-mark.js is via the npm package which you can install with npm (or yarn if you prefer)

📦 NPM

npm install -S mark.js react-mark.js

📦 Yarn

yarn add mark.js react-mark.js

↘️ Importing Components

import { Marker } from "react-marker.js";

🖌 Basic Example

import { Marker } from "react-mark.js";

export default () => (
  <Marker mark="reprehenderit">
    Cillum proident eu eiusmod incididunt pariatur. Ullamco qui deserunt ut
    reprehenderit cupidatat cupidatat nisi non occaecat non commodo. Magna
    incididunt eu laboris laboris labore. Sit duis ullamco qui nostrud aliqua do
    consectetur do incididunt eiusmod nulla consectetur. Sint reprehenderit
    culpa consectetur irure commodo magna. Officia Lorem veniam est cillum.
  </Marker>
);

Package Sidebar

Install

npm i react-mark.js

Weekly Downloads

2,364

Version

9.0.7

License

MIT

Unpacked Size

119 kB

Total Files

70

Last publish

Collaborators

  • appsparkler