I just started with Figma API, and trying get access to the Child component in main component. For example: I need to get component Date in main component Row.
const row = Figma.root.findOne(node => node.type == “COMPONENT” && node.name == “MatchRows”) as ComponentNode;
const rowDate = row.findChild(node => node.type == “COMPONENT” && node.name == “Date”) as ComponentNode;
This code got me a main component (Row, this component has four children), but I don’t know how to get the child component Date.
Thanks for help