Skip to content
Lukas edited this page Dec 22, 2021 · 3 revisions

Welcome to the cookies wiki!

React Cookie

import { useCookies } from 'react-cookie';
const [cookies, setCookie, removeCookie] = useCookies(['User']);

function onLogin(username: string) {
  setCookie("User", username);
}
Clone this wiki locally