Compare commits

3 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
ad22917268 Merge pull request 'ErrorBranch' (#108) from ErrorBranch into main
Reviewed-on: #108
2025-09-18 14:56:26 +00:00

View File

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