When I try to call a redux action creator like this, it fails because this.props is undefined.
setTimeout(function(){
birthday = window.document.getElementById('birthday')
this.props.actions.setBirthday(birthday.value)
}, 100);
But when I use the ES6 version like this, the props are accessible and it works.
setTimeout(() => {
birthday = window.document.getElementById('birthday')
this.props.actions.setBirthday(birthday.value)
}, 100)
Why? I'm an advanced-beginner and would like to understand this.