Skip to content

Commit

Permalink
docs: Component extend from React.Component (#1793)
Browse files Browse the repository at this point in the history
The sample component extend from React.Component. It should be extend from Taro.Component.
  • Loading branch information
smilecc authored and luckyadam committed Jan 3, 2019
1 parent 1bcb017 commit c11c564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Taro 中稍稍有点不同:
在 Taro 中另一个不同是你不能使用 `catchEvent` 的方式阻止事件冒泡。你必须明确的使用 `stopPropagation`。例如,阻止事件冒泡你可以这样写:

```jsx
class Toggle extends React.Component {
class Toggle extends Component {
constructor (props) {
super(props)
this.state = {isToggleOn: true}
Expand Down

0 comments on commit c11c564

Please sign in to comment.