bvaughn/react-highlight-words

Adjacent active chunks are handled as a single chunk

オープン

#68 opened on 2018/12/04

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (176 件のフォーク)github user discovery
bughelp wanted

Repository metrics

Stars
 (2,303 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

See this example: https://codesandbox.io/s/7j2njo9l2q.

searchWords={["e"]}
textToHighlight="sleep"
activeIndex={0} 

highlights both ee instead of just the first e. With activeIndex={1} nothing gets highlighted.

コントリビューターガイド