@sparkwave/somatic
TypeScript icon, indicating that this package has built-in type declarations

2.5.1 • Public • Published

somatic.js

Functional, Asynchronous, Component-based UI Library that works with JSX

Install

npm install --save @sparkwave/somatic

Features

Function-based

All components in Somatic are regular (stateless) or generator (stateful) synchronous or asynchronous functions, . No classes, hooks, proxies or template languages are needed. These feature allows for simple and direct state management right inside components.

Declarative

Somatic supports the JSX syntax popularized by React, allowing you to write HTML-like code directly in JavaScript.

Props/State interaction management

Somatic allows component authors to manage the interaction between state and props directly in components, without any ugly life-cycle methods as in React, by injecting any props updates in the generators returned from stateful components.

Strong JSX typing

Somatic supports very strong JSX typing. Elements and children are well typed, and components can specify if they accept children, something not possible in react

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.5.1
    6
    • latest

Version History

Package Sidebar

Install

npm i @sparkwave/somatic

Weekly Downloads

43

Version

2.5.1

License

MIT

Unpacked Size

163 kB

Total Files

17

Last publish

Collaborators

  • spencerg
  • agyemanjp
  • eltharim
  • hypothesizemachineuser