mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
* fix a few ipc issues * a * my own revisions * remove none as a valid type * a * fix windows build * remove comment * make it work !!!!!!!! * a * formatter nonsense * blah * huge update refactor * awa * wow * okay
28 lines
518 B
Plaintext
28 lines
518 B
Plaintext
import { useState } from "react";
|
|
|
|
export function Counter() {
|
|
console.log('counter a');
|
|
|
|
const [count, setCount] = useState(0);
|
|
|
|
function increment() {
|
|
setCount(count + 1);
|
|
}
|
|
|
|
function decrement() {
|
|
setCount(count - 1);
|
|
}
|
|
|
|
return (
|
|
<div id="counter-fixture" className="rounded-bl-full">
|
|
<p>Count A: {count}</p>
|
|
<button className="inc" onClick={increment}>
|
|
+
|
|
</button>
|
|
<button className="dec" onClick={decrement}>
|
|
-
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|