How to update model data node by click

Hi,
I want to add node by click on component A and the Gojs is on component B.
how this thing is possible.

P.S
I don’t want to render all the model from the start only to render the new Model

(Im using react)