How to update model data node by click

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

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

(Im using react)