The node editor internally manages its own state, but we can get our nodes in and out in two different ways.
The easiest way to get your nodes out of the node editor is to hook it up to the
onChange handler. This is similar to how you might use a text input in React.
onChange handler will be called any time any of the nodes change? This includes any time their position or control values change.
onChange handler may be called quite often, there are times you may want to only get out the nodes when the user is done editing. For these times the node editor provides an imperative handler for extracting the nodes.
Now we know how to get our nodes in and out of the node editor, but we still need a way to actually run our logic. In the next section we'll demonstrate how to setup the "Root Engine" to run our logic.