docbrown/app/javascript/packs/listingDashboard.jsx
Nick Taylor 653ec12300
Upgrade to Preact 10.4.4 (#8739)
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2020-06-18 10:07:17 -04:00

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();