mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2025-01-01 12:49:15 -06:00
19 lines
243 B
Plaintext
19 lines
243 B
Plaintext
@react.component
|
|
let make = () => {
|
|
let (count, setCount) = React.useState(_ => 0);
|
|
|
|
let onClick = (_evt) => {
|
|
setCount(prev => prev + 1)
|
|
};
|
|
|
|
let msg = "You clicked" ++ Belt.Int.toString(count) ++ "times"
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
}
|