Skip to content

Commit

Permalink
Using debug for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tomazy committed Aug 27, 2018
1 parent 93a08d9 commit 136c546
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"yarn": ">=1.9.4"
},
"dependencies": {
"debug": "^3.1.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"tachyons": "^4.11.1"
Expand Down
6 changes: 5 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import * as React from 'react'
import { WelcomePage } from './pages/WelcomePage'

const debug = require('debug')('g2i:App') // tslint:disable-line

export class App extends React.Component {
public render() {
debug('render', this.state)
return (
<h1>Welcome to the Trivia Challenge!</h1>
<WelcomePage numQuestions={10} />
)
}
}

0 comments on commit 136c546

Please sign in to comment.