A custom react component for annotating text content inside HTML
npm install react-annotate-textA custom react component for annotating text content inside HTML
``bash`
npm install react-annotate-text
Feel free to replace with yarn counterparts.
`javascript`
import ReactAnnoteText from "react-annotate-text";
`javascript`
src={htmlURL}
iframeTitle={"Demo"}
height={600}
width={500}
highlightData={highlightData}
selectionPopup={position => (
)}
hoverPopup={id => (
)}
/>
See example directory for complete code.
1. Install dependencies
``
npm install
2. Start development server
```
npm start