This file contains hidden or 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 from 'react'; | |
class Heading extends React.PureComponent { | |
render() { | |
return <h1>{this.props.title}</h1>; | |
} | |
} | |
export default Heading; |
This file contains hidden or 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 from 'react'; | |
const Heading = props => <h1>{props.title}</h1>; | |
export default Heading; |
This file contains hidden or 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 from "react"; | |
import Question from './components/Question'; | |
import Button from './components/Button'; | |
class App extends React.Component { | |
constructor (props) { | |
super(props); | |
this.state = { | |
data: [], | |
currentTicket: 0, | |
finished: false, |
This file contains hidden or 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 from "react"; | |
import Question from './components/Question'; | |
class App extends React.Component { | |
constructor (props) { | |
super(props); | |
this.state = { | |
data: [], | |
currentTicket: 0, | |
finished: false, |
This file contains hidden or 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 from 'react'; | |
const Question = props => { | |
return <p>{props.question}</p>; | |
} | |
export default Question; |
This file contains hidden or 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 from "react"; | |
class App extends React.Component { | |
constructor (props) { | |
super(props); | |
this.state = { | |
data: [], | |
currentTicket: 0, | |
finished: false, | |
score: '', |
This file contains hidden or 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 from "react"; | |
class App extends React.Component { | |
constructor (props) { | |
super(props); | |
this.state = { | |
data: [], | |
currentTicket: 0, | |
finished: false, | |
score: '', |
This file contains hidden or 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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './App.jsx'; | |
ReactDOM.render(<App />, document.getElementById('root')); |
This file contains hidden or 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 from 'react'; | |
class Something extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
foo: 'bar', | |
}; | |
} |
NewerOlder