import { atom } from "recoil"; export enum RecoilActions { CURR_PAGE_PATH = "CURR_PAGE_PATH", } export const currPagePath = atom({ key: RecoilActions.CURR_PAGE_PATH, // unique ID (with respect to other atoms/selectors) default: "/s", // default value (aka initial value) });