docbrown/app/javascript/packs/listings.jsx
Ben Halpern 78138532c8
Classified Listings (#2545)
* Initial classified listings work

* More work on tags

* Additional work finalizing stripe and getting the listings page along

* Finalize-ish listings 🤞
2019-04-24 16:17:01 -04:00

15 lines
337 B
JavaScript

import { h, render } from 'preact';
import { Listings } from '../listings/listings';
function loadElement() {
const root = document.getElementById('classifieds-index-container');
if (root) {
render(<Listings />, root, root.firstElementChild);
}
}
window.InstantClick.on('change', () => {
loadElement();
});
loadElement();