Skip to content

Instantly share code, notes, and snippets.

@koss-lebedev
Created October 23, 2022 07:18
Show Gist options
  • Save koss-lebedev/cf732f34aeffda4dffebe925c58a93e5 to your computer and use it in GitHub Desktop.
Save koss-lebedev/cf732f34aeffda4dffebe925c58a93e5 to your computer and use it in GitHub Desktop.

Revisions

  1. koss-lebedev created this gist Oct 23, 2022.
    7 changes: 7 additions & 0 deletions incomplete-props.tsx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    type Props = { value: string; onChange: () => void }

    const CustomInput = ({ value, onChange }: Props) => {
    // ...some additional logic

    return <input value={value} onChange={onChange} />
    }