Skip to content

Commit 36de99a

Browse files
committed
docs(README): change componentWillMount to componentDidMount
1 parent f797140 commit 36de99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class SignInScreen extends React.Component {
125125
};
126126

127127
// Listen to the Firebase Auth state and set the local state.
128-
componentWillMount() {
128+
componentDidMount() {
129129
firebase.auth().onAuthStateChanged(
130130
(user) => this.setState({signedIn: !!user})
131131
);

0 commit comments

Comments
 (0)