Merge pull request #128 from squiddle/patch-2

fix style example in README.md
pull/131/head
Simon Friis Vindum 9 years ago committed by GitHub
commit e1af6270e9

@ -80,7 +80,7 @@ var container = document.getElementById('container');
// Patch into empty DOM element this modifies the DOM as a side effect
patch(container, vnode);
var newVnode = h('div#container.two.classes', {on: {click: anotherEventHandler}}, [
h('span', {style: {fontWeight: 'normal', fontStyle: 'italics'}}, 'This is now italics'),
h('span', {style: {fontWeight: 'normal', fontStyle: 'italic'}}, 'This is now italic type'),
' and this is still just normal text',
h('a', {props: {href: '/bar'}}, 'I\'ll take you places!')
]);

Loading…
Cancel
Save