* Initial readinglist adjustments * Improve readinglist * Finalize new reading list * Fix indexing and final finalizations * Fix tests * fix tests
15 lines
334 B
JavaScript
15 lines
334 B
JavaScript
import { h, render } from 'preact';
|
|
import { ReadingList } from '../readingList/readingList';
|
|
|
|
function loadElement() {
|
|
const root = document.getElementById('reading-list');
|
|
if (root) {
|
|
render(<ReadingList />, root, root.firstElementChild);
|
|
}
|
|
}
|
|
|
|
window.InstantClick.on('change', () => {
|
|
loadElement();
|
|
});
|
|
|
|
loadElement();
|