Showing 1 of 1 total issue
Function useHighlighter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useHighlighter(props) {
const [activeIndex, setActiveIndex] = React.useState(0);
const [searchTerms, setSearchTerms] = React.useState(props.searchTerms || "");
const [textToSearch, setTextToSearch] = React.useState(props.textToSearch);