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';
|
return 'unused';
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = props.username;
|
|
||||||
|
|
||||||
const arr = [1,2,3];
|
const arr = [1,2,3];
|
||||||
const list = arr.map(item => <li>{item}</li>);
|
const list = arr.map(item => <li>{item}</li>);
|
||||||
|
|
||||||
@@ -16,6 +14,14 @@ function MyComponent(props) {
|
|||||||
|
|
||||||
let result = value + 1;
|
let result = value + 1;
|
||||||
|
|
||||||
|
if (test) {
|
||||||
|
console.log('This will never log');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (false) {
|
||||||
|
console.log('This will never log');
|
||||||
|
}
|
||||||
|
|
||||||
setCount(count++);
|
setCount(count++);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -23,7 +29,6 @@ function MyComponent(props) {
|
|||||||
<span>Test</span>
|
<span>Test</span>
|
||||||
{list}
|
{list}
|
||||||
<button onClick={() => setCount('abc')}>Click</button>
|
<button onClick={() => setCount('abc')}>Click</button>
|
||||||
<p>{name}</p>
|
|
||||||
</div>
|
</div>
|
||||||
<h1>Unwrapped</h1>
|
<h1>Unwrapped</h1>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user