Merge branch 'master' into rosmaro_snabbdom_starter

pull/432/head
Simon Friis Vindum 6 years ago committed by GitHub
commit 4e25f868b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
v6.10.1

@ -0,0 +1 @@
v6.10.1

@ -1,4 +1,4 @@
# Snabbdom
<img src="logo.png" width="356px">
A virtual DOM library with focus on simplicity, modularity, powerful features
and performance.
@ -714,6 +714,7 @@ Here are some approaches to building applications with Snabbdom.
"Tiny vdom app framework. Pure Redux. No boilerplate." - Built with :heart: on Snabbdom.
* [Backbone.VDOMView](https://github.com/jcbrand/backbone.vdomview) - A [Backbone](http://backbonejs.org/) View with VirtualDOM capability via Snabbdom.
* [Rosmaro Snabbdom starter](https://github.com/lukaszmakuch/rosmaro-snabbdom-starter) - Building user interfaces with state machines and Snabbdom.
* [Pureact](https://github.com/irony/pureact) - "65 lines implementation of React incl Redux and hooks with only one dependency - Snabbdom"
Be sure to share it if you're building an application in another way
using Snabbdom.

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@ -0,0 +1 @@
v6.10.1

@ -55,7 +55,7 @@ export const thunk = function thunk(sel: string, key?: any, fn?: any, args?: any
}
return h(sel, {
key: key,
hook: {init: init, prepatch: prepatch},
hook: {init, prepatch},
fn: fn,
args: args
});

@ -42,8 +42,7 @@ export function vnode(sel: string | undefined,
text: string | undefined,
elm: Element | Text | undefined): VNode {
let key = data === undefined ? undefined : data.key;
return {sel: sel, data: data, children: children,
text: text, elm: elm, key: key};
return {sel, data, children, text, elm, key};
}
export default vnode;

Loading…
Cancel
Save