Skip to content

Instantly share code, notes, and snippets.

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){
render() {
return ( <div>
<h1>User Component</h1>
Hello, {}
You are {this.props.age} years old,
You live at: {this.props.address}
you were born: {this.props.dob.toDateString()}
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.