Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(() => {
interface Props extends be.withColorContext.Props {
foo: string;
}
const Component = ({ colors, foo }: Props) => (
<div>
<h1>Color list</h1>
<ul>
{colors.map((c, i) => (
<li>{c.color}</li>
))}
</ul>
{foo}
</div>
);
const Enhanced = be.withColorContext(Component);
;
;
})();