Closed mrkchang closed 4 years ago
Im having the same prolblem It seems that <FlowChartWithState>
doest accept callbacks. The callbacks are taken from an actions file, but i dont see how to manage that. Can anybody give some advice?. I just want to put a click listener on every node.
@elbrodelche @mrkchang can you have a look on this closed issue, please? it may solve the problem. https://github.com/MrBlenny/react-flow-chart/issues/30
Here's the code... export default class FlowChart extends Component { render() { // const stateActions = mapValues(actions, (func: any) => // (...args: any) => this.setState(func(...args))) // as typeof actions
}