Code Monkey home page Code Monkey logo

learn-react's Introduction

react学习

淘宝源 npm install --registry=https://registry.npm.taobao.org

启动项目

项目设置的目录

文件./config/projects.json增加数组即可

参数 含义
name 项目名称
path 在./projects下的目录名称
isActive 当未在启动命令加命令参数时默认启动第一个true的项目
index 入口文件名称

启动方式

  • npm run start --env=start 启动项目名称为start的项目
  • npm run start 启动项目中第一个isActive的项目

创建/移除项目

  • npm run create -- --project-name=myproject
  • npm run create -- --project-name=myproject --is-active=true
  • npm run create -- --project-name=myproject --remove=true

创建组件

在需要创建组件的目录下

  • npm run component component-name

component-name为组件命1

学习

learn-react's People

Contributors

zengwecoder avatar

Watchers

James Cloos 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.