Skip to content

Gvinfinity/terrosinho-adventures

 
 

Repository files navigation

React + TypeScript + Vite + Tailwind

Starting the project

https://tailwindcss.com/docs/guides/vite

npm create vite@latest my-project -- --template react
cd my-project
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
@tailwind base;
@tailwind components;
@tailwind utilities;
npm run dev
export default function App() {
  return (
    <h1 className="text-3xl font-bold underline">
      Hello world!
    </h1>
  )
}

Routes

npm i -D react-router-dom

Folders Structure

└── 📁src
    └── 📁assets
        └── 📁images
        └── react.svg
    └── 📁components
        └── 📁Story
            └── Story.tsx
            └── StoryCarroussel.tsx
        └── Button.tsx
        └── Spinner.tsx
    └── 📁pages
        └── Home.tsx
        └── Stories.tsx
    └── 📁stories
        └── index.ts
        └── story-1.ts
    └── 📁types
        └── index.ts
        └── story.types.ts
    └── App.tsx
    └── index.css
    └── main.tsx
    └── vite-env.d.ts

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 97.5%
  • CSS 1.5%
  • Other 1.0%