Skip to content

Commit

Permalink
docs: update docs (#2570)
Browse files Browse the repository at this point in the history
* Update event.md

括号包裹多行 JSX 标签

* Update spec-for-taro.md

删除句末的分号
  • Loading branch information
psaren authored and luckyadam committed Mar 25, 2019
1 parent abbe73f commit c9aaf8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions docs/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,16 @@ class Popper extends Component {

render () {
const name = 'test'
return <Button onClick={(e) => {
e.stopPropagation()
this.setState({
name
})
}}>
{this.state.name}
</Button>
return (
<Button onClick={(e) => {
e.stopPropagation()
this.setState({
name
})
}}>
{this.state.name}
</Button>
)
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/spec-for-taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ render () {
<MyComponent className='long body' foo='bar'>
<MyChild />
</MyComponent>
);
)
}

// good
Expand Down

0 comments on commit c9aaf8e

Please sign in to comment.