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

Add <CheckoutButton /> Component #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MadhavBahl
Copy link
Contributor

Added component which resolves issue #14

The issue can be closed now

@vercel
Copy link

vercel bot commented Jun 26, 2018

This pull request is automatically deployed with Now.

To access deployments, click Details below or on the icon next to each push.

import React from 'react';

const CheckoutButton = () => (
<React.Fragment>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you take ({ children, ...otherProps }) and instead of hard coded text put children and spread otherProps at root component (a)? This way we can bind event listeners, classNames etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, will do this tonight :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Any update?

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.

2 participants