# extendify/1.17.1/src/HelpCenter/lib/utils.js

Extendify, version 1.17.1. 15 lines.

- Page: https://pluginprobe.com/plugins/extendify/1.17.1/code/src/HelpCenter/lib/utils.js
- Raw: https://pluginprobe.com/plugins/extendify/1.17.1/raw/src/HelpCenter/lib/utils.js
- Modified: 2024-03-14T16:40:46+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/extendify/1.17.1/code/src/HelpCenter/lib/utils.js#L10-L20`.

```javascript
import { render as renderDeprecated, createRoot } from '@wordpress/element';

export const render = (component, node) => {
	if (typeof createRoot !== 'function') {
		renderDeprecated(component, node);
		return;
	}
	createRoot(node).render(component);
};

export const isOnLaunch = () => {
	const q = new URLSearchParams(window.location.search);
	return ['page'].includes(q.get('extendify-launch'));
};

```
