From 3307caf5a091d2cb4f68e8b31fd6cc027b96a321 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 28 Aug 2015 13:57:30 -0700 Subject: [PATCH] do not export propTypes We decided to stick with the decision to not export `propTypes`, and leave them as only a static property on the default export. /@josh-perez @gilbox --- react/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/README.md b/react/README.md index b09e8473..f1ea8fb3 100644 --- a/react/README.md +++ b/react/README.md @@ -262,7 +262,7 @@ ```javascript import React, { Component, PropTypes } from 'react'; - export const propTypes = { + const propTypes = { id: PropTypes.number.isRequired, url: PropTypes.string.isRequired, text: PropTypes.string,