Skip to content

Instantly share code, notes, and snippets.

@trinwin
Created August 2, 2020 01:10

Revisions

  1. trinwin created this gist Aug 2, 2020.
    7 changes: 7 additions & 0 deletions Button.tsx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import * as React from "react";

    type Props = {
    text: string;
    };

    export default ({ text }: Props) => <button>{text}</button>;