Open macrozone opened 7 years ago
currently mapped props will always override any property passed:
const newProps = { ...this.props, ...mappedProps };
This makes it impossible to override such a property.
Switching it the other way around would make it more flexible:
const newProps = { ...mappedProps ...this.props, };
currently mapped props will always override any property passed:
This makes it impossible to override such a property.
Switching it the other way around would make it more flexible: