svjs-app

1.2.6 • Public • Published

svjs-app

A minimal ES6 JavaScript frontend app framework. It´s so minimal that it has fewer than 100 lines of code, but being enough to build complex reactive SPAs, together with the other sjvs ES6-Modules.

Documentation

App -> AppModules -> Components

App

  • Is stateless
  • Is singleton
  • Has Props
  • Contains AppModules

An App is the coded representation of a SPA (Single Page Application). It may contain AppModules. An App is stateless and has a constant configuration (props).

AppModule

  • Can be associated to a container DOM element
  • Has a State
  • Has Props
  • May contains Components

AppModules are parts of an App. Examples for AppModules are "Chat" or "ToDo List". An AppModule can have a State (changeable) and Props (constant configuration).

An AppModule is mostly associated with a container DOM element.

A AppModule can and should have multiple Components.

Component

  • Can be associated to a container DOM element
  • Uses the State of the AppModule or App
  • Has Props
  • May contain Components

A Component has no own State, it shares the State of the parent-AppModule.

A Component in most cases is related to a container DOM element and part of a AppModule. Examples for Components are "SearchInput" or "ChatOutput" or something like this.

A Component can have sub-Components.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.62latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.62
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.20
1.0.10

Package Sidebar

Install

npm i svjs-app

Weekly Downloads

1

Version

1.2.6

License

MIT

Unpacked Size

4.75 kB

Total Files

6

Last publish

Collaborators

  • shaack