Skip to content

Instantly share code, notes, and snippets.

View jacobtoye's full-sized avatar

Jacob Toye jacobtoye

  • Hamilton, New Zealand
View GitHub Profile
import * as React from 'react';
import './styles.css';
export interface ButtonProps {
text: string;
disabled?: boolean;
onClick?: (event: any) => void;
}
import * as React from 'react';
import './styles.css';
export interface AnimationProps {
isAnimated?: boolean;
}
export const withAnimation = <T extends {}>(WrappedComponent: React.ComponentClass<T>) => {
return class extends React.Component<T & AnimationProps> {