Compare commits

2 Commits

Author SHA1 Message Date
fbd5c9f014 NewTest 2025-09-18 22:02:33 +07:00
88313dbfe5 Update file 2025-09-18 22:01:42 +07:00

View File

@@ -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>
)