Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Js app without modules

Public visualization

Js app without modules

0 stars1🌍 Public
LLaurens
Last edited Feb 11, 2020
Created on Feb 11, 2020
Forked from Js template

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

Comments

Sign in to join the discussion.

MIT Licensed