Allegis Group interview question

Describe the setState method on a React component.