Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose WrappedComponent property on withSend #287

Closed
wants to merge 2 commits into from

Conversation

nhunzaker
Copy link
Contributor

cc @solomonhawk

const Button = function ({ send }) {
  return (
    <button type="button" onClick={() => send('action')}>Click me</button>
  )
})

const WrappedButton = withSend(Button)

WrappedButton.WrappedComponent // Button

@codecov-io
Copy link

codecov-io commented Apr 5, 2017

Codecov Report

Merging #287 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #287   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          22     22           
  Lines         771    772    +1     
=====================================
+ Hits          771    772    +1
Impacted Files Coverage Δ
src/addons/with-send.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdb81b2...7fc9ba8. Read the comment docs.

Copy link
Contributor

@solomonhawk solomonhawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@nhunzaker nhunzaker closed this Apr 5, 2017
@nhunzaker nhunzaker deleted the with-send-wrapped branch April 17, 2017 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants