mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 02:58:03 -05:00
Merge pull request #475 from airbnb/react_export_prop_types
Recommend exporting `propTypes` as a named export
This commit is contained in:
@@ -262,7 +262,7 @@
|
||||
```javascript
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
|
||||
const propTypes = {
|
||||
export const propTypes = {
|
||||
id: PropTypes.number.isRequired,
|
||||
url: PropTypes.string.isRequired,
|
||||
text: PropTypes.string,
|
||||
|
||||
Reference in New Issue
Block a user