# woo-vipps/5.4.1/recurring/src/lib/create-app.js

Pay with Vipps and MobilePay for WooCommerce, version 5.4.1. 11 lines.

- Page: https://pluginprobe.com/plugins/woo-vipps/5.4.1/code/recurring/src/lib/create-app.js
- Raw: https://pluginprobe.com/plugins/woo-vipps/5.4.1/raw/recurring/src/lib/create-app.js
- Modified: 2025-01-13T14:06:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-vipps/5.4.1/code/recurring/src/lib/create-app.js#L10-L20`.

```javascript
import { createRoot, render } from "@wordpress/element";

export default function createApp(element, component) {
  if (createRoot) {
    const root = createRoot(element);
    root.render(component);
  } else {
    render(component, element);
  }
}

```
