docbrown/app/javascript/packs/githubRepos.jsx
Andy Zhao ebd4b50f3f Use Preact for asynchronous rendering for /settings/integrations (#986)
* Set default styles and move button style out of form

* Add MVP of Preact /settings/integrations

* Change background color on hover and focus

* Remove unused constructor

* Improve optimistic rendering

* Add display name

* Use loading indicator for optimistic rendering

* WIP test

* Add basic snapshot tests
2018-10-31 15:51:07 -04:00

8 lines
277 B
JavaScript

import { h, render } from 'preact';
import { GithubRepos } from '../githubRepos/githubRepos';
document.addEventListener('DOMContentLoaded', () => {
const root = document.getElementById('github-repos-container');
render(<GithubRepos />, root, root.firstElementChild);
});