less than 1 minute read

The app will be based on

  • graphql

  • typescript

  • tailwind css

  • jest

Create a typescript react website

npx create-react-app my-app --template typescript

Follow the tailwindcss installation instruction for create-react-app

yarn add --dev tailwindcss postcss autoprefixer
yarn tailwindcss init -p

tailwind.config.js

/** @type {import('tailwindcss').Config} */ 
module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

index.css

@tailwind base;
@tailwind components;
@tailwind utilities;

Comments