• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

spautz / react-hibernate / 4089579833

pending completion
4089579833

push

github

GitHub
build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1

49 of 120 branches covered (40.83%)

Branch coverage included in aggregate %.

150 of 432 relevant lines covered (34.72%)

8.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/dev-helpers/src/components/RenderCount.tsx
1
import PropTypes from 'prop-types';
×
2
import React, { useRef } from 'react';
×
3

4
import Typography from '@material-ui/core/Typography';
×
5

6
const RenderCount: React.FC = () => {
×
7
  const renderCountRef = useRef(0);
×
8
  renderCountRef.current++;
×
9

10
  return (
×
11
    <Typography variant="body1">
12
      (I&apos;ve rendered {renderCountRef.current} {renderCountRef.current === 1 ? 'time' : 'times'}
×
13
      )
14
    </Typography>
15
  );
16
};
17

18
RenderCount.propTypes = {
×
19
  prefix: PropTypes.string,
20
};
21

22
export { RenderCount };
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc