News for hackers. Stuff that matters.
Re:Asm-Dom – WebAssembly Virtual DOM by amelius on Saturday May 20, 2017 @05:37PM (#14384478)
I don't like the way they write styles:

    style: 'font-weight: normal; font-style: italic'
instead of

    style: { fontWeight: "normal", fontStyle: "italic" }
I mean, it requires stringization and string-concatenation overhead.
Re:Asm-Dom – WebAssembly Virtual DOM by rictic on Saturday May 20, 2017 @09:44PM (#14385321)
If you're doing inline styles, the former is how the style is expressed to the style engine isn't it? i.e.

<div style="font-weight: normal; font-style: italic">

Re:Asm-Dom – WebAssembly Virtual DOM by ojr on Saturday May 20, 2017 @11:44PM (#14385608)
in react, styles can be just another variable in the component model/props

<div style={{ fontWeight: 'normal', fontStyle: 'italic' }}/>