Skip to content

Instantly share code, notes, and snippets.

@grovertb
Created September 16, 2019 21:54
Show Gist options
  • Select an option

  • Save grovertb/ff6718e092a649eaa1bc6067526a4a09 to your computer and use it in GitHub Desktop.

Select an option

Save grovertb/ff6718e092a649eaa1bc6067526a4a09 to your computer and use it in GitHub Desktop.
ts props
import React, { Component } from 'react';
// import React from 'react'
// interface Props {
// disableFocusRipple?: boolean;
// fullWidth?: boolean;
// href?: string;
// size?: 'small' | 'medium' | 'large';
// variant?: 'text' | 'outlined' | 'contained';
// }
// export function Thing({ size }: Props) {
// return <div>Hello {size}</div>;
// }
interface Props {
value?: string
size?: 'small' | 'medium' | 'large'
}
class Thing extends Component<Props, {}> {
render() {
return (
<div>
{this.props.value}
</div>
);
}
}
export { Thing };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment