Skip to content

Instantly share code, notes, and snippets.

@Joe1220
Created September 30, 2018 08:55
Show Gist options
  • Select an option

  • Save Joe1220/63f09cf74c9aa3340e5b9d2fb5c4de0e to your computer and use it in GitHub Desktop.

Select an option

Save Joe1220/63f09cf74c9aa3340e5b9d2fb5c4de0e to your computer and use it in GitHub Desktop.
import React from 'react'
interface IProps {
name: string
email: string
}
interface IState {
age: number
}
@observer
export default class TestComponent extends React.Component<IProps, {}> {
constructor(props: any) {
super(props)
}
private render() {
return (
<div>
test
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment