Allegis Group Interview Question

Describe the setState method on a React component.