Skip to main content
100%

Js app without modules

✓ Published0🌍 Public
LLaurens
Last edited Feb 15, 2020
Created on Feb 14, 2020

This example demonstrates a two-level single-page application without any module system, using plain JavaScript and XMLHttpRequest. Clicking a todo item in the overview renders its detail view, and clicking the detail title returns to the list. The app routes between overview and detail states via object-literal methods for routing, API calls, and rendering, fetching data from the JSONPlaceholder API. Global state is limited to a few object literals, with the DOM fully rebuilt on each render.

AI-generated description

A basic SPA app

  • Clicking on a result will render a detailed result.
  • Click on that result again will get you back to the overview
  • The only global variables are the object literals that hold methods
MIT Licensed

Similar vizzes