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

React v15.5.4 propTypes問題 #19

Open
FishGPT opened this issue Apr 26, 2017 · 0 comments
Open

React v15.5.4 propTypes問題 #19

FishGPT opened this issue Apr 26, 2017 · 0 comments

Comments

@FishGPT
Copy link

FishGPT commented Apr 26, 2017

貼心提醒

Level 7. 培養好習慣,設計防呆的 React 元件
https://github.com/shiningjason1989/react-quick-tutorial/tree/master/level-07_prop-types-n-default-values

根據官方ReleaseNote,在2017/04/07釋出的v15.5.0版本中
已經移除React.createClass及React.PropTypes
https://github.com/facebook/react/releases/tag/v15.5.0

如果有Console有以下警告訊息
Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

請額外引入檔案
https://github.com/reactjs/prop-types

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

1 participant