newyork-anthonyng/react-highlight-hooks

View on GitHub
src/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function useHighlighter has 29 lines of code (exceeds 25 allowed). Consider refactoring.
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);

Severity: Minor
Found in src/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status