Code Monkey home page Code Monkey logo

reactshare's Introduction

reactShare

功能模块(A、B、C)

es6 模块化(新的语法特性)

Bable6 es6 -> es5(js库)

把一些类,函数,变量写到一个文件中,作为一个功能模块,当要使用这个模块,只需要引入

创建(支持语法特性,非常便利)

通过这个命令,创建一个react工程

npm install -g create-react-app

#到指定目录创建工程

create-react-app projrect_name
cd projrect_name
npm start
  1. react入门概念
  2. es6箭头函数 使用
  3. 例子1,组件的使用
  4. 例子2, 组件的重用(嵌套)
  5. 例子3, state 使用 喜欢的切换
  6. 例子4, props 使用 子组件更新父组件属性后刷新子组件
  7. 例子5, 生命周期
  8. 例子6, 表单提交,使用props 传递回调函数

reactshare's People

Contributors

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