carteb / carte-blanche

An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
https://www.youtube.com/watch?v=6g3-TQ6aaw8
MIT License
1.5k stars 47 forks source link

Remove existing style nodes #166

Closed nikgraf closed 8 years ago

nikgraf commented 8 years ago
clearStyleNodes = () => {
  const componentStylingNodes = getStylingNodes();
  map(componentStylingNodes, (stylingNode) => {
    stylingNode.parentNode.removeChild(stylingNode);
  });
};
nikgraf commented 8 years ago

Going to be irrelevant, because we will render it in an iFrame