Giter Club home page Giter Club logo

proyectoreact01's Introduction

React & Vite First Project

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Create the Project

  • The following command is going to create the project.
  • Then just answer the different questions generated by the script to complete the process of creation
npm init vite@latest

Start the Server

npm run dev

TailwindCSS

Installation

npm i -D tailwindcss postcss autoprefixer

Configuration

Step 01

The following command will create two config files: tailwind.config.js and postcss.config.js

npx tailwindcss init -p

Step 02

Look for the file src/index.css that was created by vite and add the following commands

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

Step 03

Open the file named tailwind.config.js that was created in the first step, and change it with the following content

/** @type {import('tailwindcss').Config} */
export default {
  content: ["./index.html", "./src/**/*.jsx"],
  theme: {
    extend: {},
  },
  plugins: [],
}

Deployment Netlify

Modify configuration file

  • Modify tailwind.config.js

Previews State

/** @type {import('tailwindcss').Config} */
export default {
  content: ["./index.html", "./src/**/*.{jsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
}

New State

  • Originally was using the keyword of purge instead of content, but this was modified since tailwind 3.0
/** @type {import('tailwindcss').Config} */
export default {
  content: ["index.html", "./src/**/*.jsx"],
  theme: {
    extend: {},
  },
  plugins: [],
}

URL

Project Deployment Link

proyectoreact01's People

Contributors

xandro2021 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.