Skip to content

Commit

Permalink
Update load-website.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-co committed Jun 27, 2017
1 parent ebcc3eb commit 63f5b66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ch08/hi-order/jsx/load-website.jsx
Expand Up @@ -2,8 +2,7 @@ const LoadWebsite = (Component) => {
class _LoadWebsite extends React.Component {
constructor(props) {
super(props)
this.state = {label: 'Run'}
this.state.handleClick = this.handleClick.bind(this)
this.state = {label: 'Run', handleClick: this.handleClick.bind(this)}
}
getUrl() {
return 'https://facebook.github.io/react/docs/top-level-api.html'
Expand All @@ -22,4 +21,4 @@ const LoadWebsite = (Component) => {
_LoadWebsite.displayName = 'EhnancedComponent'

return _LoadWebsite
}
}

1 comment on commit 63f5b66

@tanloo
Copy link

@tanloo tanloo commented on 63f5b66 Mar 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a beginner, I am curious why you did this.

Please sign in to comment.