Skip to content

Instantly share code, notes, and snippets.

@behnamazimi
Created November 8, 2020 10:42
Show Gist options
  • Save behnamazimi/db6f49f993e6d2d1c41b28d6bf9e97c8 to your computer and use it in GitHub Desktop.
Save behnamazimi/db6f49f993e6d2d1c41b28d6bf9e97c8 to your computer and use it in GitHub Desktop.

Revisions

  1. behnamazimi created this gist Nov 8, 2020.
    5 changes: 5 additions & 0 deletions react-patterns-ex4.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    function withSomething(Component) {
    return function (props) {
    return <Component {...props} something="Any" />;
    }
    }