Compare commits

1 Commits

Author SHA1 Message Date
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,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) {
<span>Test</span>
{list}
<button onClick={() => setCount('abc')}>Click</button>
<p>{name}</p>
</div>
<h1>Unwrapped</h1>
)