6.0.2 • Published 7 years ago
rwc v6.0.2
rwc (BETA)
RWC is tiny framework for creating web-components that is heavily inspired by ELM. The approach is an attempt to find a balance between a scalable paradigm and performance.
Installation
npm install rwc --save
Paradigm
A component is made up of Four pure functions.
init()
: Provides the initial stateS
of the component.update(a: Action, s: State)
: A reducer function like that in Redux that takes an inputstate
and based on theaction
returns a new output state.view(e: Emitter, s: State)
: The view function converts thestate
into a virtual DOM tree. Additionally it also gets an instance of theEmitter
that can be used to handle events.command(a: Action, s: State)
: Thecommand()
function is like theupdate()
function except that it return an object of typeCommand
.
6.0.2
7 years ago
6.0.1
7 years ago
6.0.0
7 years ago
5.1.5
8 years ago
5.1.4
8 years ago
5.1.3
8 years ago
5.1.2
8 years ago
5.1.1
8 years ago
5.1.0
8 years ago
5.0.0
8 years ago
4.0.0
8 years ago
3.0.0
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.4.0
8 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.3.0
8 years ago
1.2.0
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago