We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ce9fe commit 6f559d8Copy full SHA for 6f559d8
snippets/javascript/useCookie.template
@@ -1,3 +1,5 @@
1
+import Cookies from 'js-cookie';
2
+
3
function useCookie(name, defaultValue) {
4
const [value, setValue] = useState(() => {
5
const cookie = Cookies.get(name)
0 commit comments