My button has the following onClick function
<button
onClick={() => this.onDismiss(item.objectID)}
type="button"
>
I have an onDismiss function that filters a list and updates my react application. I did not bind the function's "this" to its constructor. I purposely commented the "this" binding out but the application still works. Does the ES6 arrow functions automatically bind the funciton's "this" to the class Component? Shouldn't I be getting undefined?
My codesandbox link