Created
March 30, 2017 17:19
-
-
Save pastelsky/0c9cbd148953ff1c16cf420304761d44 to your computer and use it in GitHub Desktop.
Destructure all things
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, PropTypes } from 'react' | |
class HelloWorld extends Component { | |
static propTypes = { | |
show: PropTypes.bool | |
} | |
render() { | |
const { show } = this.state | |
return ( show && <h1> Destructure all things !</h1> ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment