Closed youzi closed 7 years ago
eg
const Column = state => <div>{ state.sort((a, b) => a.order.compute() > b.order.compute()).map(s => <ColumnItem />) }</div>
results in
var $272768006_$1260517555_Column = { tag: 'div', $: '.$any', // <==== this is wrong (notice the dot) $any: { order: { val: 'shallow' }, val: function (keys, $state) { return keys.sort(function (keya, keyb) { var a = $state.get(keya); var b = $state.get(keyb); var $state0, $state1; return (($state0 = a.get(['order'])) && $state0.compute()) > (($state1 = b.get(['order'])) && $state1.compute()) }); } }, props: { default: { type: 'ColumnItem' } } }
eg
results in