Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

v1.2.1

Compare
Choose a tag to compare
@jez jez released this 22 Nov 01:20
· 181 commits to master since this release

We've fixed a bug where using pure components under the <Elements> component
would lead to an error.

For example, this used to raise an error but does not anymore:

class PureWrapper extends React.PureComponent {
  render() {
    return <div>{this.props.children}</div>;
  }
}

// ...

    <StripeProvider apiKey='pk_test_foo123'>
      <Elements>
        <PureWrapper>
          <InjectedCheckoutForm />
        </PureWrapper>
      </Elements>
    </StripeProvider>