Skip to main content
Module

x/goober/should-forward-prop/src/index.js

πŸ₯œ goober, a less than 1KB πŸŽ‰ css-in-js alternative with a familiar API
Go to Latest
File
/** * Should forward prop utility function * @param {Function} filterPropFunction The flter function */export function shouldForwardProp(filterPropFunction) { /** * The forward props function passed to `setup` * @param {object} props */ function forwardProp(props) { for (let p in props) { if (!filterPropFunction(p)) { delete props[p]; } } }
return forwardProp;}