I am not very familiar with React. Can you explain how the useState function works?