Skip to content

Commit 77a3d9c

Browse files
committed
Minor optimizations
1 parent 09ba75e commit 77a3d9c

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/pages/Count.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ const Count: React.FC = (): React.ReactElement => {
77

88
return (
99
<section>
10-
<>
11-
<h1>Count Page</h1>
12-
<button type="button" onClick={() => increment()}>
13-
Increment
14-
</button>
15-
<p>Current Count: {count}</p>
16-
</>
10+
<h1>Count Page</h1>
11+
<button type="button" onClick={() => increment()}>
12+
Increment
13+
</button>
14+
<p>Current Count: {count}</p>
1715
</section>
1816
);
1917
};

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
alias: {
99
"@": path.resolve(__dirname, "./src"),
1010
},
11-
extensions: [".ts", ".tsx", ".mjs", ".js", ".mts", ".jsx", ".json"],
11+
extensions: [".ts", ".tsx"],
1212
},
1313
test: {
1414
globals: true,

0 commit comments

Comments
 (0)