Skip to content

Commit 1703865

Browse files
authored
Merge pull request #66 from ml-in-barcelona/Inline-props-as-object
Inline props as object
2 parents f224a44 + f353634 commit 1703865

File tree

8 files changed

+859
-651
lines changed

8 files changed

+859
-651
lines changed

example/src/Refs.re

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ module FancyLink = {
55
[@react.component]
66
let make =
77
React.Dom.forwardRef((~href, ~repo, ref) =>
8-
<a ref=?{ref |> Js.Opt.to_option} href className="FancyLink">
9-
{repo |> React.string}
10-
</a>
8+
<a ref href className="FancyLink"> {repo |> React.string} </a>
119
);
1210
};
1311

0 commit comments

Comments
 (0)