diff --git a/react/README.md b/react/README.md index 16bf2420..b86f743f 100644 --- a/react/README.md +++ b/react/README.md @@ -557,7 +557,8 @@ - How to define `propTypes`, `defaultProps`, `contextTypes`, etc... ```jsx - import React, { PropTypes } from 'react'; + import React from 'react'; + import PropTypes from 'prop-types'; const propTypes = { id: PropTypes.number.isRequired,