## ElementsConsumer

`ElementsConsumer` exposes the same `Stripe` and `Elements` instances as the [hooks](https://docs.stripe.com/js/elements/use_stripe.md), but uses a render
prop instead of React hooks. This is useful when building class components or when you prefer the
render-prop pattern.

### Props

- `children`
  A render prop that receives `{stripe, elements}`. Render your UI using these instances.

### Example

```title
Render ElementsConsumer
```
