Skip to content

Instantly share code, notes, and snippets.

@nicokoelewijn
Last active January 3, 2019 14:52
Show Gist options
  • Select an option

  • Save nicokoelewijn/b0c11ba87bee25f2e931991c6798dc9e to your computer and use it in GitHub Desktop.

Select an option

Save nicokoelewijn/b0c11ba87bee25f2e931991c6798dc9e to your computer and use it in GitHub Desktop.
functional component template
import React, { Component } from 'react';
import styled, { StyledType } from '../../utility/styled';
type StateType = {
focus: boolean;
};
type PropsType = {
value: string;
};
class $@ extends Component<PropsType, StateType> {
public render(): JSX.Element {
return <div>$@</div>
}
}
export default $@;
export { PropsType, StateType };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment