Passed
Push — main ( 7326d1...81594a )
by LCS
03:20
created

src/components/ErrorButton.tsx   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
mnd 0
bc 0
fnc 1
dl 0
loc 13
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A ErrorButton.tsx ➔ ErrorButton 0 10 1
1
import React from "react";
2
3
export default function ErrorButton() {
4
  return (
5
    <button
6
      onClick={() => {
7
        throw new Error("This is your first error!");
8
      }}
9
    >
10
      Break the world
11
    </button>
12
  );
13
}