Skip to content

[website] Tutorial warning at 'Showing the moves' #10957

@shaleh

Description

@shaleh

I am running the code locally, using npm start. All was going well until I hit this section.

$ npm -v
3.10.10
$ node -v
v6.11.3

Here is what I see:

Compiled with warnings.

./src/index.js
  Line 84:  Links must not point to "#". Use a more descriptive href or use a button instead  jsx-a11y/href-no-hash

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

I grabbed the current code from this link https://codepen.io/gaearon/pen/EmmGEa?editors=0010 and I get the same warning as in the code I typed in manually. The text talks about this warning:

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of "Game".

Which I am not seeing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions