Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
docs: 补充生命周期对应关系的说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Darmody committed Sep 1, 2019
1 parent e69b4ab commit 10cd29e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ export default () => {
return <View>view</View>;
};
```

另外,小程序的 `onLoad` 事件对应 React 的 `componentDidMount` 事件,`onUnload` 对应 `componentWillUnmount` 事件。

0 comments on commit 10cd29e

Please sign in to comment.