Skip to content

Instantly share code, notes, and snippets.

@jamestthompson3
Created May 27, 2018 16:41
Show Gist options
  • Select an option

  • Save jamestthompson3/55a4365059c8ad4633e7d6394752e4ef to your computer and use it in GitHub Desktop.

Select an option

Save jamestthompson3/55a4365059c8ad4633e7d6394752e4ef to your computer and use it in GitHub Desktop.
withContext(
{ updateFunctions: PropTypes.object, user: PropTypes.object },
({ selectedUser, addLike, addDislike, deleteLike, deleteDislike }) => ({
user: selectedUser,
updateFunctions: { addLike, addDislike, deleteLike, deleteDislike }
})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment