Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const managerDefault = () => {
const [state, setState] = useAddonState('manager');
return (
<div>
Manager counter: {state}
<br>
<button> setState(state - 1)}>decrement</button>
<button> setState(state + 1)}>increment</button>
</div>
);
};
export const previewDefault = () => {
const [state, setState] = useAddonState('preview', 50);
return (
<div>
Manager counter: {state}
<br>
<button> setState(state - 1)}>decrement</button>
<button> setState(state + 1)}>increment</button>
</div>
);
};