From 1bbac742862720fd6905712ccf87cae45f327307 Mon Sep 17 00:00:00 2001 From: Gustavo Isensee Date: Tue, 13 Jun 2017 00:59:43 -0300 Subject: [PATCH] Updated "how to define propTypes..." Imported from new prop-types module. --- react/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,