source: pages/index/Counter.tsx@ 1ebac59

main
Last change on this file since 1ebac59 was 8ee4553, checked in by Bati <no-reply@…>, 7 months ago

scaffold Vike app with Bati

  • Property mode set to 100644
File size: 233 bytes
Line 
1import { useState } from "react";
2
3export function Counter() {
4 const [count, setCount] = useState(0);
5
6 return (
7 <button type="button" onClick={() => setCount((count) => count + 1)}>
8 Counter {count}
9 </button>
10 );
11}
Note: See TracBrowser for help on using the repository browser.