React does not re-render immediately. Instead, it waits until the function completes and then processes state updates in batches.