3 ms·
That's still converting attributes to/from DOM strings, which seems likely to end up in bad places once you've got a huge amount of data.
by crooked-v 8y ago
That's still converting attributes to/from DOM strings, which seems likely to end up in bad places once you've got a huge amount of data.
- ergo14 8y agoWhere did you get this information from? This is not true, there is no string conversion. There is even separate syntax for setting props vs attrs. Check out the readme here. https://github.com/Polymer/lit-element https://github.com/Polymer/lit-element I also normally use redux in my WC applications.
- ergo14 8y agoHere - https://jsfiddle.net/ae3bjk7g/14/ https://jsfiddle.net/ae3bjk7g/14/ Since this show on HN all the time. Here is an example where Web Components pass a FUNCTION as a property to eachother to demonstrate its not strings/JSON. Hopefully this clears things up for you. Cheers!