Co-authored-by: Nick Taylor <nick@iamdeveloper.com> Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
15 lines
328 B
JavaScript
15 lines
328 B
JavaScript
import { h, render } from 'preact';
|
|
import { ListingDashboard } from '../listings/listingDashboard';
|
|
|
|
function loadElement() {
|
|
const root = document.getElementById('listings-dashboard');
|
|
if (root) {
|
|
render(<ListingDashboard />, root);
|
|
}
|
|
}
|
|
|
|
window.InstantClick.on('change', () => {
|
|
loadElement();
|
|
});
|
|
|
|
loadElement();
|