Giter VIP home page Giter VIP logo

react-starter's Introduction

react-starter

Personal Opinionated React Starter Template

Features

Running the project

This project use pnpm as package manager, install it if you haven't installed.

You need to install dependencies before running project at first time

pnpm i

You can run the project by following scripts:

pnpm dev

Develop

We use React ^18 and Vite ^3. If you are looking for any 3rd party lib, Please check if the version supports.

Redux or other state library are not recommended unless you are going to build a complex project. For simple or middle project, consider using SWR and localstorage.

Running the tests

We use vitest to run tests. You can run pnpm watch:test to start a watching test or run pnpm test:unit to run full unit tests. When you add/edit common components, it is recommended to write tests for them.

CI/CD

This project uses GitHub Actions to do CI, you can check details in .github/workflows. To skip CI/CD, you can check this page.

Release

This project use standard-version to manage release, run pnpm release will create new version with tag. When tags with version pushed, a GitHub release will create.

Rules

You have to allow the rules below to ensure code quality

Code Style

We follow airbnb code style, but we have customized some code style in prettier, you can check prettier for details

Some other code styles listed below (recommended)

  • Follow Clean Code Javascript

  • Use the ComponentNameProps to name the Props and export

  • Use FC to type define a component

react-starter's People

Contributors

wwwenjie avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

tugsjin

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.