This is a simple starter for a React project with TypeScript and vite. It includes a basic setup for a React project with TypeScript, ESLint, Prettier, shadcn/ui. and many more. This could be your perfect starter templates to initialize your new React project. you don't have to waste time in configuring everything. setup your project with this template withing a minute.
- Tailwindcss, shadcn-ui with Typescript configured
- igniting vite with powerful plugins
- husky hooks setup for pre-commit
- docker setup
- eslint, prettier setup for code formatting
- standard folder structure
- Custom import aliases (Example: @/components )
- dependabot to keep notify to update dependencies
- perfect workspace settings for single or team project.
This plugin is used to generate SVG images from React components. You can use this plugin in your project. Example:
import Logo from '@/assets/react.svg?react';
// just add ?react query to get the svg component
export const App = () => {
return (
<div {...props}>
<Logo />
{/* You can use svg components as like normal React components */}
</div>
);
};
This plugin is used to generate fonts from Google fonts. You can use this plugin in your project.
How to use ? Open /config/fonts.config.ts
file and add your fonts like this: name should be exactly same as in Google fonts. If you wan to add custom fonts you can check their doc. link
{
name: 'Space Grotesk',
styles: 'wght@300;400;500;700',
},
This plugin is used to auto import modules. You can use this plugin in your project. auto-import will handle all imports like react, react-router and also shadcn-ui's component in your @component/ui folder , etc. and you can add more.
Example:
export function Counter() {
const [count, setCount] = useState(0); // no need to import react and react-router, auto-import will handle it
return (
<div>
<Button onClick={() => setCount(count + 1)}>Count: {count}</Button>
{/* also, Button from @/components/ui but you don't need to import it. */}
</div>
);
}