cubetiq-muui/src/App.tsx
2022-05-17 08:17:39 +07:00

23 lines
431 B
TypeScript

import { useState } from "react";
import "./App.css";
import { Button } from "./lib";
function App() {
const [count, setCount] = useState<number>(0);
const onCount = (e: any) => {
setCount(count + 1);
};
return (
<div className="App">
<header className="App-header">
<h1>Count: {count}</h1>
<Button onClick={onCount}>Click me</Button>
</header>
</div>
);
}
export default App;