The hasFocus property is automatically injected into the component state by the framework and is internally handled by Blits. To prevent unintended overrides, developers must avoid manually declaring hasFocus in the component's state configuration.
we should have a validation mechanism that detects any explicit declaration of the hasFocus key in component state definitions and trigger descriptive error.
state() {
hasFocus: false/ true/ 1/ 0
}