Skip to content

Instantly share code, notes, and snippets.

@NimaBoscarino
Created February 11, 2019 19:40
Show Gist options
  • Save NimaBoscarino/19b248ee26537d02528cf23125f05d38 to your computer and use it in GitHub Desktop.
Save NimaBoscarino/19b248ee26537d02528cf23125f05d38 to your computer and use it in GitHub Desktop.
import React, {Component} from 'react';
class VideoThumb extends Component {
render() {
console.log('HELLO I AM PROPS', this.props)
return (
<div>
<h1>{this.props.name}</h1>
<img src={`https://api.adorable.io/avatars/50/${this.props.name}.png`} />
</div>
)
}
}
class App extends Component {
render() {
return (
<div>
<Person
age={1000}
name={"Timothy"}/>
<Person
age={800}
name={"Fereshteh"}/>
<Person name={"Fabrizio"}/>
</div>
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment