Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react set cookie

import Cookies from 'universal-cookie';
const cookies = new Cookies();
cookies.set('myCat', 'Pacman', { path: '/' });
console.log(cookies.get('myCat')); // Pacman
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #set #cookie
ADD COMMENT
Topic
Name
9+9 =