bvaughn/react-highlight-words

Adjacent active chunks are handled as a single chunk

开放

#68 创建于 2018年12月4日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (176 个派生)github user discovery
bughelp wanted

仓库指标

星标
 (2,303 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南