componentDidMount() {
    API.getBaseEmployeesList()
    .then(res => this.ListeningStateChangedEvent({ employees: res.data.message }))
    .catch(err => console.log(err));
}
// When the component mounts, get a list of all the available employees and update this.state.employees
When the component mounts, get a list of all the available employees and update this.state.employees
When the component mounts get a list of all the available employees and update this . state . employees
componentDidMount() {
    API.getBaseEmployeesList()
    .then(res => this.ListeningStateChangedEvent({ employees: res.data.message }))
    .catch(err => console.log(err));
}
componentDidMount ( ) { API . getBaseEmployeesList ( ) . then ( res => this . ListeningStateChangedEvent ( { employees : res . data . message } ) ) . catch ( err => console . log ( err ) ) ; }
When the component mounts, get a list of all the available employees and update this.state.employees
When the component mounts get a list of all the available employees and update this . state . employees