Re: [w3c/webcomponents] idea: easy way to specify attributes (and optionally enable getters/setters). (#517)

@trusktr Skate already provides a way to do something similar to what you want. I don't think allowing non-string values to go to, or come back from `setAttribute()` /  `getAttribute()` is the best idea considering eventually they'd have to be serialised anyways and it requires overriding them if it never gets spec'd.

Skate offers an API to [`serialize`](https://github.com/skatejs/skatejs#serialize) to and [`deserialize`](https://github.com/skatejs/skatejs#deserialize) from attributes. Our [react-integration](https://github.com/skatejs/react-integration) will force setting props, so with the combination of Skate's property definitions and that, you'll get React components built from Web Components (not just Skate components).

Not sure exactly if this answers your questions, but if you have a question about Skate specifically, please feel free to raise it there.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/517#issuecomment-224452820

Received on Wednesday, 8 June 2016 00:20:34 UTC