Spect provides one of the fastest and the smallest in the world diff engine, but its potential is undiscovered. There should be an elegant way to render lists.
h`<${el}>${
todos >> h`<li>${ it.text }</li>`
}</>`
👎🏼 >> conflicts visually with tag
👎🏼 requires it to be defined
2
h`<${el}>${
todos | it => h`<li>${ it.text }</li>`
}</>`
👎🏼 function does not cast to indicative value by default, although gives non-NaN results
👎🏼 function must be parenthised: this syntax generates SyntaxError
3
h`<${el}>${
item => h`<li>${ item.text }</li>` << todo
}</>`
👎🏼 << operator makes that part of function
4
h`<${el}><li :for=${item in todo}>${item.text}</li></>`
Spect provides one of the fastest and the smallest in the world diff engine, but its potential is undiscovered. There should be an elegant way to render lists.
Maybe map operator?
1
👎🏼 >> conflicts visually with tag 👎🏼 requires
it
to be defined2
👎🏼 function does not cast to indicative value by default, although gives non-NaN results 👎🏼 function must be parenthised: this syntax generates SyntaxError
3
👎🏼 << operator makes that part of function
4
👎🏼 what is
item in todo?
5 - collection method