feat(create-turbo): create with-vite-react

This commit is contained in:
Turbobot
2026-01-05 13:41:53 +07:00
committed by Firman Ramdhani
commit 43b929db64
32 changed files with 2288 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import React, { useState } from "react";
export const Counter: React.FC = () => {
const [count, setCount] = useState(0);
return (
<button id="counter" type="button" onClick={() => setCount(count + 1)}>
{count}
</button>
);
};
+13
View File
@@ -0,0 +1,13 @@
import React from "react";
interface HeaderProps {
title: string;
}
export const Header: React.FC<HeaderProps> = ({ title }) => {
return (
<header id="header">
<h1>{title}</h1>
</header>
);
};
+2
View File
@@ -0,0 +1,2 @@
export * from "./header";
export * from "./counter";