I have tried this way.
const layerConfig = { id: \'myLayer\', "type": "point", ... } this.props.dispatch( addDataToMap({ d