fix: add comment about return value
This commit is contained in:
@@ -21,12 +21,14 @@ export function groupEmbedsByUid(embedsArray: Node<Embeds>[]) {
|
||||
return embedsByUid
|
||||
}
|
||||
|
||||
|
||||
export function nodeChildrenToHtml(
|
||||
nodes: RTENode[],
|
||||
embeds: EmbedByUid,
|
||||
fullRenderOptions: RenderOptions
|
||||
): any {
|
||||
return nodes.map((node, i) => {
|
||||
// This function either returns a JSX element or null
|
||||
return {
|
||||
...nodeToHtml(node, embeds, fullRenderOptions),
|
||||
key: `child-rte-${i}`,
|
||||
|
||||
Reference in New Issue
Block a user