How to use the @emotion/memoize.default function in @emotion/memoize

To help you get started, we’ve selected a few @emotion/memoize 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 styled-system / styled-system / packages / should-forward-prop / index.js View on Github external
const memoize = require('@emotion/memoize').default
const isPropValid = require('@emotion/is-prop-valid').default
const systemProps = require('styled-system/props')

const regex = new RegExp(`^(${systemProps.join('|')})$`)

module.exports = memoize(prop => isPropValid(prop) && !regex.test(prop))

@emotion/memoize

emotion's memoize utility

MIT
Latest version published 4 months ago

Package Health Score

83 / 100
Full package analysis

Popular @emotion/memoize functions

Similar packages