This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am chrisbarthol on github. | |
* I am chrisbarthol (https://keybase.io/chrisbarthol) on keybase. | |
* I have a public key ASAQ29BmJLOevMADuZ9Rb-5zze4q7IzYEPsQyQDL4n8vzQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import Header from './Header' | |
import Footer from './Footer' | |
class App extends Component { | |
render(){ | |
return( | |
<div> | |
<Header /> | |
<div className='content'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
class App extends Component { | |
render(){ | |
return <div>App</div> | |
} | |
} | |
export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import Square from './Square' | |
class Board extends Component { | |
renderSquare(i) { | |
return <Square value={this.props.squares[i]} onClick={() => this.props.onClick(i)} />; | |
} | |
render() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import Square from './Square' | |
class Board extends Component { | |
constructor(){ | |
super() | |
this.state = { | |
squares: Array(9).fill(null), | |
xIsNext: true, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import Square from './Square' | |
class Board extends Component { | |
constructor(){ | |
super() | |
this.state = { | |
squares: Array(9).fill(null), | |
xIsNext: true, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import Square from './Square' | |
class Board extends Component { | |
constructor(){ | |
super() | |
this.state = { | |
squares: Array(9).fill(null), | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
class Square extends Component { | |
constructor(props){ | |
super(props) | |
this.clickFunction = this.clickFunction.bind(this) | |
this.state = { | |
value:null, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
class Square extends Component { | |
clickFunction(){ | |
alert('click') | |
} | |
render(){ | |
return( |
NewerOlder