Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Mar 15, 2019
1 parent d0ff912 commit e47d3a6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions examples/forwarding-refs/wrapped-component-with-function-name.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const FancyButton = React.forwardRef(
function Button(props, ref) {
return (
<button ref={ref} className="FancyButton">
{props.children}
</button>
);
}
);
const FancyButton = React.forwardRef(function Button(
props,
ref
) {
return (
<button ref={ref} className="FancyButton">
{props.children}
</button>
);
});

0 comments on commit e47d3a6

Please sign in to comment.