import { Button } from '@automattic/components'; import { useDispatch } from 'react-redux'; import { savePreference } from 'calypso/state/preferences/actions'; import DismissibleCard from '../'; function DismissibleCardExample() { const dispatch = useDispatch(); function clearPreference() { dispatch( savePreference( 'dismissible-card-example', null ) ); } return (

Dismissible Card

I will be dismissed for a page load I can be dismissed forever!
); } DismissibleCardExample.displayName = 'DismissibleCard'; export default DismissibleCardExample;