bendotcodes/cookies

Expose non-hook functions (react-cookie)

Closed this issue · 1 comments

Is it possible to export the functions to set or delete cookies without using react components?

I would like to use this in an Axios interceptor, but it seems I would have to install another package to do this (or write a local function, which seems unneccessary)

Thanks

eXon commented

Yes, the universal-cookie package can be used with anything. The library react-cookie is only for React components.