Created
April 17, 2019 11:32
-
-
Save maxkoretskyi/b01f877f8769c3456439c76a6bd45598 to your computer and use it in GitHub Desktop.
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
export default class CurrencyRenderer extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { value: props.value }; | |
} | |
render() { | |
return ( | |
<span>EUR {this.state.value}</span> | |
); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment