I have no problem with stateful components, it was with this oddity:
this.state = {
value: this.props.value || '',
} this.state = {
value: this.props.value || '',
}So, that snippet is actually valid - presumably they want to initialize the internal state value based on the corresponding prop, and use an empty string if it doesn't exist.