How to use the jsxstyle.resetCache function in jsxstyle

To help you get started, we’ve selected a few jsxstyle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jsxstyle / jsxstyle / packages / jest-jsxstyle / src / serializer.js View on Github external
function print(val, printer) {
    val.withStyles = true;

    const prettyPrinted = `${styles}\n\n${printer(val)}`;

    styles = '';
    resetCache();
    return prettyPrinted;
  }

jsxstyle

Inline style system for React and Preact

Apache-2.0
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis