mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
import { createSignal } from 'solid-js'
|
|
|
|
export function Hello(props) {
|
|
const [times, setTimes] = createSignal(2)
|
|
return (
|
|
<>
|
|
<div>{`${props.count} x ${times()} = ${props.count * times()}`}</div>
|
|
<button onClick={() => setTimes(t => t + 1)}>x1</button>
|
|
</>
|
|
)
|
|
}
|