-
-
Save Dman757/9468db39954c0ac7b07f570a5685101f to your computer and use it in GitHub Desktop.
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
class whatever extends Component { | |
buttonRender () { | |
if (this.props.saveDisabled) { | |
return <Button1/> | |
} else { | |
return <Button2/> | |
} | |
} | |
render () { | |
return ( | |
{ this.buttonRender() } | |
) | |
} | |
} | |
export default whatever |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment