example/src/App.js
// fire when node has been clicked.
fire when node has been clicked.
fire when node has been clicked .
onClick(node) {
    const actions = process(this.state.actions, draft => {
      draft.splice(0, 0, {
        index: draft.length + 1,
        action: "click",
        nodes: [node],
      });
    });
    this.setState({
      actions,
    });
  }
onClick ( node ) { const actions = process ( this . state . actions , draft => { draft . splice ( 0 , 0 , { index : draft . length + 1 , action : "click" , nodes : [ node ] , } ) ; } ) ; this . setState ( { actions , } ) ; }
fire when node has been clicked.
fire when node has been clicked .