-
Type:
Task
-
Resolution: Fixed
-
Priority:
L3 - Default
-
Affects Version/s: None
-
Component/s: None
-
None
Currently when you want to use the Reference component, you need to include the same two lines every time:
const nodes = {}; const Reference = createReferenceComponent(nodes);
I would prefer a solution with a smaller footprint like
const {Reference, nodes} = createReferenceComponent(); // or const Reference = createReferenceComponent(); const namedNode = Reference.namedNode;
Ideally, I would love a solution where I don't need to call createReferenceComponent at all and just can access the nodes by Reference.nodeName, but I am not sure that is easily doable.