# React Stripe

React Stripe is a thin React wrapper around
[Stripe Elements](https://stripe.com/docs/elements). It allows you to add
Elements to any React app.

[![build status](https://img.shields.io/travis/stripe/react-stripe/master.svg?style=flat-square)](https://travis-ci.org/stripe/react-stripe)
[![npm version](https://img.shields.io/npm/v/@stripe/react-stripe.svg?style=flat-square)](https://www.npmjs.com/package/@stripe/react-stripe)

## Getting Started

- [Add React Stripe to your React app](https://stripe.com/docs/stripe-js/react-stripe#setup)
- [Try it out using CodeSandbox](https://codesandbox.io/s/react-stripe-official-q1loc?fontsize=14&hidenavigation=1&theme=dark)

## Documentation

- [React Stripe Docs](https://stripe.com/docs/stripe-js/react-stripe)
- [Migrate from `react-stripe-elements`](docs/migrating.md)
- [Legacy `react-stripe-elements` docs](https://github.com/stripe/react-stripe-elements/#react-stripe-elements)
- [Examples](examples)

### Minimum Requirements

React Stripe depends on the
[React Hooks API](https://reactjs.org/docs/hooks-intro.html). The minimum
supported version of React is v16.8. If you use an older version, upgrade React
to use this library. If you prefer not to upgrade your React version, we
recommend using legacy
[`react-stripe-elements`](https://github.com/stripe/react-stripe-elements).

### Contributing

If you would like to contribute to React Stripe, please make sure to read our
[contributor guidelines](CONTRIBUTING.md).
