Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated tutorial.md #2940

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

updated tutorial.md #2940

wants to merge 1 commit into from

Conversation

Timibadass
Copy link

The method is not used anywhere inside render()

The Board component at that time no longer has a constructor and hence, the component longer has a state object so at that point, the code would throw an error.
@@ -845,18 +845,6 @@ The Board component now looks like this:

```javascript{17,18}
class Board extends React.Component {
handleClick(i) {
Copy link
Collaborator

@alexkrolick alexkrolick Apr 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this replace "this.props.onClick" in renderSquare?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.props.onClick can either be inside the handleClick method, or the handleClick method should also be deleted from the Board component since it isn't being called anywhere at that point so learners(like me) can follow along properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants