microapp
Minimal functional application creator. A demonstration of basic functional UI principles.
npm i microapp
Usage:
// Redux-like reducer for application stateconst reducer = state = count: 0 action // Functional UI componentconst App = { return h` <div> <h1>Count: </h1> <button onclick=> - Decrement </button> <button onclick=> + Increment </button> </div> `} const app = app
Features
- Redux-like store with a single reducer
- ES2015 template literal functions based on bel
- DOM update using morphdom and yo.update
- cxs className helper for functional css-in-js styles