See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
import React from 'react'; | |
class TwoWayBindingInput extends React.Component { | |
state = { | |
value: this.props.value | |
}; | |
componentWillReceiveProps(nextProps) { | |
if (this.state.value !== nextProps.value) |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.