useState: Updating state with callback function
This is from the React II Hooks lesson concerning updating state with a callback function. I understand why, but confused by the following example. Where does prevCount get initialized with the current state?
import React, { useState } from 'react';
export default function Counter() {
const [count, setCount] = useState(0);
const increment = () => setCount(prevCount => prevCount + 1);
return (
<div>
<p>Wow, you've clicked that button: {count} times</p>
<button onClick={increment}>Click here!</button>
</div>
);
}