Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function() {
const [setValue, deleteValue] = useSetAndDelete('a-sample-key')
return (
<section>
<h3>
Set/Remove the key<code>'a-sample-key'</code> with the value{' '}
<code>'the value'</code>
</h3>
<button> setValue('the value')}>
set 'a-sample-key' in store
</button>
<button> deleteValue()}>
remove 'a-sample-key' from store
</button>
</section>
)
}