Compare commits
3 Commits
ErrorBranc
...
NewTest
| Author | SHA1 | Date | |
|---|---|---|---|
| fbd5c9f014 | |||
| 88313dbfe5 | |||
| ad22917268 |
11
error.jsx
11
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 => <li>{item}</li>);
|
||||
|
||||
@@ -16,6 +14,14 @@ function MyComponent(props) {
|
||||
|
||||
let result = value + 1;
|
||||
|
||||
if (test) {
|
||||
console.log('This will never log');
|
||||
}
|
||||
|
||||
if (false) {
|
||||
console.log('This will never log');
|
||||
}
|
||||
|
||||
setCount(count++);
|
||||
|
||||
return (
|
||||
@@ -23,7 +29,6 @@ function MyComponent(props) {
|
||||
<span>Test</span>
|
||||
{list}
|
||||
<button onClick={() => setCount('abc')}>Click</button>
|
||||
<p>{name}</p>
|
||||
</div>
|
||||
<h1>Unwrapped</h1>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user