Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

214 B
Raw Blame
const BLACKLISTED_PROPS = ['class'];

export function filterProps(props: Record<string, unknown>) {
  return Object.fromEntries(
    Object.entries(props).filter(([key]) => !BLACKLISTED_PROPS.includes(key))
  );
}