I stuck with one small issue. Rewriting js file from jQuery to native JS, and in jQuery we use:
$.get(`/page`, function (data) {
elem.html(data);
}
basically we fetching body from '/page' and pushing it to elem.innerHTML.
But how I can get html body using fetch() instead of .get()?
See Question&Answers more detail:os