When the component mounts, the HOC starts the loading process. Once the loading process is complete, the HOC sets the isLoading state variable to false. The HOC then renders the wrapped component if the isLoading state variable is false. Otherwise, the HOC renders a loading spinner.