mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 15:37:55 -05:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user