diff --git a/error.jsx b/error.jsx index 7b3beeb..21cf9f6 100644 --- a/error.jsx +++ b/error.jsx @@ -7,8 +7,6 @@ function MyComponent(props) { return 'unused'; } - const name = props.username; - const arr = [1,2,3]; const list = arr.map(item =>
  • {item}
  • ); @@ -16,6 +14,11 @@ function MyComponent(props) { let result = value + 1; + const test = null; + if (test) { + console.log('This will never log'); + } + setCount(count++); return ( @@ -23,7 +26,6 @@ function MyComponent(props) { Test {list} -

    {name}

    Unwrapped

    )