Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import * as React from "react";
import UserInterface from './UserInterface'
export default class UserComponent extends React.Component<UserInterface, {}> {
constructor (props: UserInterface){
super(props);
}
render() {
return ( <div>
<h1>User Component</h1>
Hello, {this.props.name}
<br/>
You are {this.props.age} years old,
<br/>
You live at: {this.props.address}
<br/>
you were born: {this.props.dob.toDateString()}
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.