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