Giter Site home page Giter Site logo

vite-react-component's Introduction

Vite react component

Usage

To clone and use this template type the following commands:

npx degit chrisuser/vite-react-component my-component
cd my-component

Then, based on your package manager:

npm

npm install
npm run dev

yarn

yarn
yarn dev

Tip

Remember to update the project name inside the package.json file and to change the /REPO_NAME/ string inside the vite.config.ts one.


πŸš€ Available Scripts

In the project directory, you can run:


⚑️ start

npm run dev

or

yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.


🦾 build

npm run build

or

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.


🧢 lint

npm run lint

or

yarn lint

Creates a .eslintcache file in which ESLint cache is stored. Running this command can dramatically improve ESLint's running time by ensuring that only changed files are linted.


🧬 Project structure

This is the structure of the files in the project:

    β”‚
    β”œβ”€β”€ .github                 # github workflows/actions
    β”œβ”€β”€ lib                     # component files
    β”œβ”€β”€ src                     # source files
    β”‚   β”œβ”€β”€ App.css
    β”‚   β”œβ”€β”€ App.tsx
    β”‚   β”œβ”€β”€ main.tsx
    β”‚   └── vite-env.d.ts
    β”œβ”€β”€ .eslintrc.js
    β”œβ”€β”€ .gitignore
    β”œβ”€β”€ index.html
    β”œβ”€β”€ package.json
    β”œβ”€β”€ README.md
    β”œβ”€β”€ tsconfig-build-docs.json
    β”œβ”€β”€ tsconfig-build.json
    β”œβ”€β”€ tsconfig.json
    β”œβ”€β”€ tsconfig.node.json
    β”œβ”€β”€ vite.config.json        # main vite configurations
    └── yarn.lock

πŸ“– Learn More

This template was created by following this guide by Andreas RiedmΓΌller.

You can learn more in the Vite documentation.

To learn React, check out the React documentation.

Contribution

If you have a suggestion that would make this component better feel free to fork the project and open a pull request or create an issue for any idea or bug you find.
Remeber to follow the Contributing Guidelines.

vite-react-component's People

Contributors

chrisuser 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.