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

ErrorButton.tsx ➔ ErrorButton   A

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 10
c 0
b 0
f 0
rs 10
cc 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
}