MCPcopy
hub / github.com/refined-github/refined-github / joinJsx

Function joinJsx

source/helpers/join-jsx.tsx:3–17  ·  view source on GitHub ↗
(
	separator: React.ReactNode,
	items: readonly JSX.Element[],
)

Source from the content-addressed store, hash-verified

1import React from 'dom-chef';
2
3export default function joinJsx(
4 separator: React.ReactNode,
5 items: readonly JSX.Element[],
6): JSX.Element {
7 return (
8 <>
9 {items.map((item, index) => (
10 <>
11 {index > 0 && separator}
12 {item}
13 </>
14 ))}
15 </>
16 );
17}

Callers 3

renderShortcutFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected