SYNOPSIS
A minimalist composable component inspired by React, based on Web Components.
GOALS
- Quickly read and understand the whole codebase;
~100
lines. - React-like component composition.
- One-way binding; pipe data though connected components.
- Single source event dispatch; no event rebinding needed.
- Bring your own Routers, Reducers, Validators, etc.
- True encapsulation via standard web technology.
NON-GOALS
- When re-rendering performance is truly important, a virtual dom is
not the right tool. In these cases you should either A. update some
specific dom nodes directly or B. use a graphics/animation engine. The
one-way-everywhere approach might make some code easy to reason about,
but it ends up being a performance compromise with added complexity. - JSX
- Magic
USAGE
Install using npm, yarn, etc.
Import the component constructor.