refresh button

Hello, I want to get the code so that when I press a button I update my page, can someone help me? Thank you very much.

import wixLocation from 'wix-location';
$w.onReady(() => {
$w('#refreshBtn').onClick(() => wixLocation.to(wixLocation.url));
})

Thank you very much, it was very usefull.