score:0

const renderNotes = (notes) => {
    return labels.map(label => {
        console.log("---" + label + "---")
        return (
            notes.filter(note => positionLabels[note.position] === label).map((value)=> {
                console.log("BINGO");
                return (
                    <CustomComponent
                        key={value.id}
                        content={value.content}
                    />
                )
            })
        )
    })
 }

Related Query

More Query from same tag