Files
bun.sh/test/integration/next-pages/src/Counter2.txt
dave caruso 81badbac4c fix(ipc): add json ipc type + buffer incoming messages until a listener is attached. (#8733)
* 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
2024-04-01 01:51:15 -07:00

28 lines
523 B
Plaintext

import { useState } from "react";
export function Counter() {
console.log('counter b loaded');
const [count, setCount] = useState(0);
function increment() {
setCount(count + 2);
}
function decrement() {
setCount(count - 2);
}
return (
<div id="counter-fixture" className="rounded-br-full">
<p>Count B: {count}</p>
<button className="inc" onClick={increment}>
+
</button>
<button className="dec" onClick={decrement}>
-
</button>
</div>
);
}