fable-compiler / fable-react

Fable bindings and helpers for React and React Native
MIT License
273 stars 67 forks source link

Clarify what FunctionComponent.Of does #159

Closed cmeeren closed 5 years ago

cmeeren commented 5 years ago

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.

alfonsogarciacaro commented 5 years ago

Yes, I missed the documentation comment for FunctionComponent.Of when publishing Fable.React 5. I should write something a bit more comprehensive, thank you!