Skip to content

Mistake in Tutorial Instructions #9120

@MincePie

Description

@MincePie

I'm a struggling learner - I've been trying to learn for 4.5 years and still really confused about everything. I haven't found a good way to learn yet, so apologies in advance if this sort of thing is in that category of super obvious to the audience you're aiming to reach with the tutorial.

I'm trying to follow along with the tutorial - about half way down the page it says:

Now we're passing down two props from Board to Square: value and onClick. The latter is a function that Square can call. So let's do that by changing render in Square to have:

<button className="square" onClick={() => this.props.onClick()}>
  {this.props.value}
</button>

I think there is a mistake in the instructions. It says 'render', but there is no render in the Square class. There is return. The final result you share shows this button in the 'return'. Maybe the instructions should replace 'render' with 'return'.

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions