Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(() => {
const EnhancedComponentDefaultBehavior = C.withFocusReturn((props: { foo: string; bar: string }) => (
<div>{JSON.stringify(props)}</div>
));
;
const EnhancedComponentCustomBehavior = C.withFocusReturn({
onFocusReturn() {
console.log('Hello World!');
},
})((props: { foo: string; bar: string }) => <div>{JSON.stringify(props)}</div>);
;
const EnhancedComponentCustomBehaviorDefault = C.withFocusReturn({})((props: { foo: string; bar: string }) => (
<div>{JSON.stringify(props)}</div>
));
;
})();