Skip to content

Instantly share code, notes, and snippets.

@ryanluker
Last active April 29, 2016 06:06
Show Gist options
  • Select an option

  • Save ryanluker/f8aa68b7d97f12de1ef1d334830c60cc to your computer and use it in GitHub Desktop.

Select an option

Save ryanluker/f8aa68b7d97f12de1ef1d334830c60cc to your computer and use it in GitHub Desktop.
simple stateless component
import * as React from "react";
import {AddButtonProps} from "../libs/interfaces";
export const AddFishButton = (props: AddButtonProps) => (
<button disabled={!props.isAvailable} onClick={props.addToOrder}>{props.text}</button>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment