1
0
mirror of https://github.com/franjsco/tick3t synced 2025-06-05 22:19:18 +02:00

refactor: Logo component

This commit is contained in:
Francesco Esposito
2019-07-31 15:54:55 +02:00
parent 6df8d5e086
commit e5ff4d781c

View File

@ -1,22 +1,17 @@
import React, { Component } from 'react'; import React from 'react';
class Logo extends Component {
constructor(props) {
super(props);
this.state = {}; const Logo = (props) => {
} return (
<div>
render() { <img
return ( style={props.style}
<div> src={props.src}
<img alt={props.alt}>
style={this.props.style} </img>
src={this.props.src} </div>
alt={this.props.alt}></img> );
</div>
);
}
} }
export default Logo; export default Logo;