Giter Site home page Giter Site logo

tangweikun / happy-beauty-stars Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.75 MB

A simple and beauty star rating component with hooks

Home Page: https://tangweikun.github.io/happy-beauty-stars/

HTML 16.15% CSS 5.06% JavaScript 78.79%
react-demo react-hooks-demo

happy-beauty-stars's Introduction

Beauty Stars

一个简单的评分组件

难易程度: ⭐

在线预览

相关项目

  • Happy Clicker

    一个简单的计数器,可以'加一','减一'和'重置'

快速开始

  1. 克隆仓库
git clone [email protected]:tangweikun/happy-beauty-stars.git
  1. 安装依赖包
cd happy-beauty-stars
yarn | npm install
  1. 本地运行
yarn start | npm run start
  1. 在浏览器中打开http://localhost:3000查看效果

依赖库

library version
react 16.11.0
react-dom 16.11.0
react-scripts 3.2.0
gh-pages 2.1.1

部署到 Github Pages

  1. 添加 homepagepackage.json
"homepage": "https://myusername.github.io/my-app",
  1. 安装 gh-pages
yarn add gh-pages
  1. package.json中添加部署脚本
"scripts": {
+   "predeploy": "npm run build",
+   "deploy": "gh-pages -d build",
    "start": "react-scripts start",
    "build": "react-scripts build",
  1. 执行 yarn deploy
yarn deploy
  1. 打开https://myusername.github.io/my-app查看效果

happy-beauty-stars's People

Contributors

tangweikun avatar

Watchers

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