File size: 477 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
---
id: api-onChangeComplete
title: onChangeComplete
---
Pass a function to call once a color change is complete.
```
import React from 'react';
import { PhotoshopPicker } from 'react-color';
class Component extends React.Component {
state = {
background: '#fff',
};
handleChangeComplete = (color, event) => {
this.setState({ background: color.hex });
};
render() {
return <PhotoshopPicker onChangeComplete={ this.handleChangeComplete } />;
}
}
```
|