Hi, I really like the idea of styletron. This thing allows really nice concept of components' styles. However this also needs a raw <style> element to be mounted to the DOM before rendering. With this components this cannot be achieved now - style element must be attached to the iframe's DOM, not the host page.
But by inserting this
this.props.beforeRender(doc);
before this line will do the trick. That way I will be able to do:
Hi, I really like the idea of styletron. This thing allows really nice concept of components' styles. However this also needs a raw
<style>
element to be mounted to the DOM before rendering. With this components this cannot be achieved now -style
element must be attached to theiframe
's DOM, not the host page.But by inserting this
before this line will do the trick. That way I will be able to do:
Are you willing to accept PR?