Skip to content

Conversation

SoYoung210
Copy link

PureComponent is much better than just Component in rendering performance

And, I think

 static propTypes = {
    className: PropTypes.string,
    max: PropTypes.number.isRequired,
    onChange: PropTypes.func.isRequired,
    value: PropTypes.number.isRequired
  }
  static defaultProps = {
    className: ""
  }

it's (little bit) better ..!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant