Skip to content

Commit

Permalink
docs(index.md): add missing extends Component (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenchange4 authored and darthtrevino committed Jul 25, 2017
1 parent 920aba6 commit b5747f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Expand Up @@ -125,7 +125,7 @@ export default DragSource(ItemTypes.CARD, cardSource, collect)(Card);
```js
// Let's make <Card text='Write the docs' /> draggable!

import React from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DragSource } from 'react-dnd';
import { ItemTypes } from './Constants';
Expand All @@ -145,7 +145,7 @@ const cardSource = {
connectDragSource: connect.dragSource(),
isDragging: monitor.isDragging()
}))
export default class Card {
export default class Card extends Component {
static propTypes = {
text: PropTypes.string.isRequired,

Expand Down

0 comments on commit b5747f2

Please sign in to comment.