Skip to content

(Frontend) Add missing 'props' to React class constructors and super() call#153

Merged
SudKul merged 1 commit intoudacity:masterfrom
AlbertVilaCalvo:add-missing-props-react-class-frontend
Jan 5, 2022
Merged

(Frontend) Add missing 'props' to React class constructors and super() call#153
SudKul merged 1 commit intoudacity:masterfrom
AlbertVilaCalvo:add-missing-props-react-class-frontend

Conversation

@AlbertVilaCalvo
Copy link
Copy Markdown
Contributor

@AlbertVilaCalvo AlbertVilaCalvo commented Dec 30, 2021

The props parameter is missing on React classes. I got warnings on WebStorm about this

Note that this is not required for the app to work properly (it would be if you did this.props, which is not the case now).

@AlbertVilaCalvo AlbertVilaCalvo requested a review from a team as a code owner December 30, 2021 19:22
@AlbertVilaCalvo AlbertVilaCalvo requested review from SudKul and removed request for a team December 30, 2021 19:22
@SudKul
Copy link
Copy Markdown
Contributor

SudKul commented Jan 5, 2022

Again, thank you @AlbertVilaCalvo for this PR.
Accepting this one as a best practice. Future learners may refer to this StackOverflow discussion on using super(props).

@SudKul SudKul merged commit 5d4f94a into udacity:master Jan 5, 2022
@AlbertVilaCalvo AlbertVilaCalvo deleted the add-missing-props-react-class-frontend branch January 5, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants