RemixNode

View Source

Summary

Anything that Remix can render, including nested arrays of renderable values. This mirrors how JSX spreads children into arrays (e.g. when using map) and how our reconciler flattens children at runtime.

Particularly useful for props.children.

function MyComponent({ children }: { children: RemixNode }) {}

Signature

type RemixNode = Renderable | RemixNode[];