I've just seen the above syntax on a CodeSandbox, and as far as I'd always learned you cannot render arrays in JSX - you must always map them if you want to render something for each of the array items.
Here's the code I saw:
render(
<React.StrictMode>
<HigherOrderComponent>
{permissions => [
<Resource name="posts" {...posts} />,
<Resource name="comments" {...comments} />,
permissions ? <Resource name="users" {...users} /> : null,
<Resource name="tags" {...tags} />,
]}
</HigherOrderComponent>
</React.StrictMode>,
document.getElementById('root')
);
How does that permissions inline JavaScript work? I think it's also very curious that permissions is not defined anywhere in the file.