Closed andys8 closed 2 years ago
Adding another variant of memo that allows passing a function to compareprevious and new props.
https://reactjs.org/docs/react-api.html#reactmemo
I'm open to any name changes and other suggestions.
Solves https://github.com/megamaddu/purescript-react-basic-hooks/issues/60
Thanks! I kind of want to deprecate/rename the existing memo.. Ref equality in PS is weird...
memo
Adding another variant of memo that allows passing a function to compareprevious and new props.
https://reactjs.org/docs/react-api.html#reactmemo
I'm open to any name changes and other suggestions.
Solves https://github.com/megamaddu/purescript-react-basic-hooks/issues/60