header.jsx 495 B

1234567891011121314151617
  1. var Header = React.createClass({
  2. getInitialState: function() {
  3. return {
  4. blockNumber: "", //todo, later for potentially adding contract creation as well.
  5. }
  6. },
  7. render: function() {
  8. console.log("tring to render");
  9. return (
  10. <div>
  11. <h3 className={"text-center"} >{this.props.data.token_name} </h3>
  12. <img src={this.props.data.token_image} className={"img-circle center-block"}/>
  13. </div>
  14. );
  15. }
  16. });