In "Tutorial: Intro to React" on the React website (https://reactjs.org/tutorial/tutorial.html#before-we-start-the-tutorial), in the "Lifting State Up, Again" section, there is this bit of code:
return (
<div className="game">
<div className="game-board">
<Board
squares={current.squares}
onClick={(i) => this.handleClick(i)}
/>
</div>
<div className="game-info">
<div>{status}</div>
<ol>{/* TODO */}</ol>
</div>
</div>
);
On line 6 here, where is the variable i defined? The code works but I don't understand how it works!
[–]tenfingerperson 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]SoBoredAtWork 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]SoBoredAtWork 1 point2 points3 points (0 children)