reactjs tutorial\ code example
Example 1: react tutorial for beginners
class Board extends React.Component {
constructor(props) {
super(props);
this.state = {
squares: Array(9).fill(null),
};
}
renderSquare(i) {
return <Square value={i} />;
}
}
Example 2: react tutorial
renderSquare(i) {
return <Square value={i} />;
}