example/src/App.js
// fire when flow has been changed.
fire when flow has been changed.
fire when flow has been changed .
onChange({ data, detail }) {
    const actions = process(this.state.actions, draft => {
      draft.splice(0, 0, {
        index: draft.length + 1,
        ...detail,
      });
    });
    this.setState({
      data,
      actions,
    });
    console.log(data);
  }
onChange ( { data , detail } ) { const actions = process ( this . state . actions , draft => { draft . splice ( 0 , 0 , { index : draft . length + 1 , ... detail , } ) ; } ) ; this . setState ( { data , actions , } ) ; console . log ( data ) ; }
fire when flow has been changed.
fire when flow has been changed .