Skip to content

Commit 91706f6

Browse files
Update webpack sample: Fix prop-types usage
This got missed in the initial update to React 16. It would be nice to have an automated regression test for the samples to catch oversights like this in the future.
1 parent bfd1360 commit 91706f6

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/React.Sample.Webpack/Content/components/Avatar.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
var React = require('react');
11+
var PropTypes = require('prop-types');
1112

1213
class Avatar extends React.Component {
1314
static propTypes = {

src/React.Sample.Webpack/Content/components/Comment.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
var Avatar = require('./Avatar');
1111
var React = require('react');
12+
var PropTypes = require('prop-types');
1213

1314
class Comment extends React.Component {
1415
static propTypes = {

src/React.Sample.Webpack/Content/components/CommentsBox.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
var Comment = require('./Comment');
1111
var React = require('react');
12+
var PropTypes = require('prop-types');
1213

1314
class CommentsBox extends React.Component {
1415
static propTypes = {

0 commit comments

Comments
 (0)