My Arduino Nano ESP32 webserver is not refreshing on its own

I just got the new nanoESP32, but I am not able to find enough examples to refresh my webpage after the interaction.

Earlier I used the ESP32 and Arduino IDE to build my projects, I have already built this Building an LED Webserver with ESP32: A Step-by-Step Tutorial tutorial the same code and circuit works for me.

Now I want to be able to do the same for Nano ESP32, I tried the default example code for webser but the page is not reloading after I click a button.

Is there something like an AJAX for Nano ESP32?