Skip to content

Instantly share code, notes, and snippets.

Chris chrisotto6

Block or report user

Report or block chrisotto6

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BoardGame.tsx
class Board extends React.Component<any, any> {
renderSquare(i) {
return (
<Square
value={this.props.squares[i]}
onClick={() => this.props.onClick(i)}
/>
);
}
View squareFunc.tsx
function Square(props: any) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
You can’t perform that action at this time.