Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第二张,子相父传递数据,prop-types 需要单独下载包和引入。 #114

Open
fanmucc opened this issue Jun 19, 2019 · 2 comments

Comments

@fanmucc
Copy link

fanmucc commented Jun 19, 2019

No description provided.

@foxconn-quality-inspector

具体操作步骤:

  1. 安装node,运行node -vnpm -v,检查自己的npm和node是否安装成功。
  2. import React, { Component, PropTypes } from 'react';修改成
import React, { Component } from 'react';
import PropTypes from 'prop-types';
  1. 命令行控制台切换到项目目录运行以下命令:
    npm install --save prop-types
  2. 刷新下

@foxconn-quality-inspector

能不能把错字改下,好难受啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants