Reading through the Fable.React 5 blog post, I was confused by the fact that React.memo wasn't mentioned anywhere. Digging into the code, it seems to me that the new FunctionComponent.Of uses React.memo when memoizeWith is specified. I think it would be best to mention this is the function's documentation.
Yes, I missed the documentation comment for FunctionComponent.Of when publishing Fable.React 5. I should write something a bit more comprehensive, thank you!
Reading through the Fable.React 5 blog post, I was confused by the fact that
React.memo
wasn't mentioned anywhere. Digging into the code, it seems to me that the newFunctionComponent.Of
usesReact.memo
whenmemoizeWith
is specified. I think it would be best to mention this is the function's documentation.