@eccenca/gui-elements
Version:
Collection of low-level GUI elements like Buttons, Icons or Alerts. Also includes core styles for those elements.
28 lines (25 loc) • 597 B
JSX
// react
import React from 'react';
const Version = React.createClass({
displayName: 'Version',
// define property types
propTypes: {
version: React.PropTypes.string.isRequired,
},
// initilize state
getInitialState() {
// return state
return this.props;
},
// template rendering
render() {
return (
<span
className="version-info"
style={{marginLeft: '5px', marginRight: '5px'}}>
{this.state.version}
</span>
);
},
});
export default Version;