Skip to content

twilson63/reflex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reflex

Simple Reactive Framework

This library or framework takes a render function that must return a virtual-dom tree and a simple function that takes an event and returns state, it is called a transform function.

Example

const app = require('reflex')

const render = function (emitter) {
  return function (state) {
    return h('h1', [state.title])
  }
}

// transform uses mostjs streams for async
const transform = function (event) {
  var state = {}
  return most.of(state )
}

app(render, transform)


About

reflex a native web library or framework

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors